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
"""Test for cython pure python cython.declare"""
import cython
MY_VAR = cython.declare(cython.int, 0)
Configuration
[testoptions]
requires: cython
Command used
pylint regression_cython_declare.py
Pylint output
************* Module regression_cython_declare
tests/functional/r/regression_02/regression_cython_declare.py:4:24: E1101: Module 'cython' has no 'int' member; maybe 'bint'? (no-member)
------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)
Cython has a "pure python" mode with which you can write your python code using valid python syntax.
I believe pylint should be able to recognize it and avoid reporting correct syntax when using cython. In this case, it is expected that the cython module doesn't provide the members.
I'll do a pull request with the test case, and will try to produce a patch.
Bug description
"""Test for cython pure python cython.declare"""
import cython
MY_VAR = cython.declare(cython.int, 0)
Configuration
[testoptions] requires: cython
Command used
Pylint output
Expected behavior
Your code has been rated at 10.00/10
Pylint version
OS / Environment
Needs cython. The default cython package as of today is
Cython==0.29.32
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: