New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad interaction with cdef property and function annotation #1948

dalcinl opened this Issue Oct 26, 2017 · 0 comments


None yet
1 participant

dalcinl commented Oct 26, 2017

@scoder The code below fails to compile. After renaming the property, compilation succeed. I tried hard to figure out where the problem originated, but I failed miserably 馃槥.

#cython: embedsignature=True
#cython: annotation_typing=False

cdef class memory:

cdef class Foo:

    def bar(self) -> memory:
        return memory()

    property memory:
        def __get__(self):
            return memory()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment