We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider following cython code:
# cython is *not* imported def foo(bar: cython.int[:]): pass
This code is compiled successfully without any warning even though cython.int type is ignored.
cython.int
When annotation type is not recognized a warning should be raised:
warning: deleteme.py:2:19: Unknown type declaration 'cython.int' in annotation, ignoring
This is the same behavior as we have already for simple types:
# cython is *not* imported def foo(bar: cython.int): pass
Alternative is to keep as it is but this can end up with stupid mistakes as mine - see issue #5649
No response
The text was updated successfully, but these errors were encountered:
Warn about unknown memoryview types in annotations (GH-5664)
df4c9a4
Closes #5650
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
Consider following cython code:
This code is compiled successfully without any warning even though
cython.int
type is ignored.Describe the solution you'd like.
When annotation type is not recognized a warning should be raised:
This is the same behavior as we have already for simple types:
Describe alternatives you've considered.
Alternative is to keep as it is but this can end up with stupid mistakes as mine - see issue #5649
Additional context
No response
The text was updated successfully, but these errors were encountered: