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
For flake8, an import is considered "used" if it appears in a module's __all__. It seems that cython-lint is unaware of __all__ when considering which imports are used or unused.
Example:
# file.pyximportnumpy__all__= ["numpy"]
$ cython-lint file.pyx
file.pyx:1:8: 'numpy' imported but unused
Rename the above to file.py -- flake8 is clean.
Renaming the above to file.py and remove __all__:
$ flake8 file.py
file.py:1:1: F401 'numpy' imported but unused
The text was updated successfully, but these errors were encountered:
For flake8, an import is considered "used" if it appears in a module's
__all__
. It seems that cython-lint is unaware of__all__
when considering which imports are used or unused.Example:
$ cython-lint file.pyx file.pyx:1:8: 'numpy' imported but unused
Rename the above to
file.py
-- flake8 is clean.Renaming the above to
file.py
and remove__all__
:$ flake8 file.py file.py:1:1: F401 'numpy' imported but unused
The text was updated successfully, but these errors were encountered: