You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use the cimport keyword in pure Python it doesn't work (correctly). However, the error message suggests that you should use the cimport keyword
Code to reproduce the behaviour:
from cython.operator cimport dereference
Output is:
from cython.operator cimport dereference
^
------------------------------------------------------------
somefilename.py:1:21: Expected 'import' or 'cimport'
Expected behaviour
A useful error message. This isn't quite as simple as it looks because the cython module wants to be imported, while most other thing want from cython.cimports.... Although given that this is at the parsing stage, it'd probably be sufficient to just write expected "import"
Environment
Current master
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
If you use the
cimport
keyword in pure Python it doesn't work (correctly). However, the error message suggests that you should use thecimport
keywordCode to reproduce the behaviour:
from cython.operator cimport dereference
Output is:
Expected behaviour
A useful error message. This isn't quite as simple as it looks because the
cython
module wants to be imported, while most other thing wantfrom cython.cimports...
. Although given that this is at the parsing stage, it'd probably be sufficient to just writeexpected "import"
Environment
Current master
Additional context
No response
The text was updated successfully, but these errors were encountered: