-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
False positive no-name-in-module(E0611) in module nh3 #8756
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
Comments
Thanks @jasperfirecai2. I think this is the same situation as #6281. |
nh3 is a wrapper for ammonia, which is written in rust aye |
We are also experiencing this in our project, We have put in temporary exclusions for now and will monitor this thread for any changes. https://gitlab.com/crafty-controller/crafty-4/-/commit/ef691eda5c37ae0267cfd99d7d4c48f75d37d984 |
It seems like it's a duplicate of #4987 (pyi support), and should be fixed. Are you using pylint 3 or more, and are you providing the pyi to pylint ? (Disclaimer: I'm not using pyi myself so I don't know for sure if it works, but it should). |
Hi there, Thank you for the rapid response, It's appreciated. nh3 0.2.14 |
pylint will need this pyi file to understand the rust code that it can't analyses. (Until recently it couldn't analyses the pyi file either). Or an inference tip that we call brain and that is more internal that that and that we call astroid brain, basically it would mean a pylint plugin for nh3. |
I would make sure that the pyi is accessible by pylint (with the proper namespace like in |
Indeed the installation is pretty standard and set up in a virtual environment so I'm kind of stumped in why pylint isn't able to parse nh3 properly, And just checking there definitely isn't any place in the configuration to direct pylint with paths to these kind of files? |
@Pierre-Sassoulas I think for .pyi support we also need #9097, fixed in #9241, waiting on astroid 3.1. |
Ahh gocha thank you both for the updates <3 |
I'm going to try to release astroid 3.1.0 asap then. |
Bug description
Intellisense can resolve this module import but pylint claims this not to not exist. nh3 has no pylint-plugin as it shouldn't need one. issue on their repo
Configuration
No response
Command used
via pylint vscode plugin
OR
python -m pylint --rcfile=.pylintrc $(git ls-files '*.py')
Pylint output
Expected behavior
There should be no linter warning here since the module resolves in both intellisense and code.
Pylint version
Legacy version because vscode plugin used to be broken
Also applies to newer version
OS / Environment
Windows 10 Enterprise 64-bit
vscode builtin terminal
Additional dependencies
for specific issue:
nh3==0.2.13
within project:
pylint-django==2.5.3
pylint-plugin-utils==0.8.2
The text was updated successfully, but these errors were encountered: