-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.py files having precedence over .pyi files causes problems with opencv-python module (and probably others) #9185
Comments
n0n3m4
added
the
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
label
Oct 24, 2023
Another common library affected by this issue is My hack is to swap the order of so that |
This comment was marked as outdated.
This comment was marked as outdated.
Pierre-Sassoulas
added
Blocked 🚧
Blocked by a particular issue
and removed
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
labels
Feb 23, 2024
copybara-service bot
pushed a commit
to google-deepmind/tf2jax
that referenced
this issue
Apr 25, 2024
PiperOrigin-RevId: 628180204
copybara-service bot
pushed a commit
to google-deepmind/tf2jax
that referenced
this issue
Apr 25, 2024
PiperOrigin-RevId: 628180204
copybara-service bot
pushed a commit
to google-deepmind/tf2jax
that referenced
this issue
Apr 25, 2024
PiperOrigin-RevId: 628185025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
If module has both .py and .pyi files available, .py file is always used according to the code added in pull request pylint-dev/astroid#2182
Unfortunately, this doesn't always work correctly, as noted in the discussion of that pull request (even pylint-dev/astroid#2195 was created, but not merged)
One of the popular libraries where this doesn't work is opencv-python, here is an example code:
Removing /usr/local/lib/python3.10/dist-packages/cv2/__init__.py resolves the issue
Configuration
No response
Command used
Pylint output
Expected behavior
Pylint version
OS / Environment
Ubuntu 22.04
Additional dependencies
The text was updated successfully, but these errors were encountered: