Skip to content

False positive no-name-in-module(E0611) in module nh3 #8756

@jasperfirecai2

Description

@jasperfirecai2

Bug description

image
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

pylint.exe --reports=n --output-format=json --rcfile=.pylintrc --from-stdin [...]/a.py

via pylint vscode plugin
OR

python -m pylint --rcfile=.pylintrc $(git ls-files '*.py')

Pylint output

************* Module a
a.py:19:0: E0611: No name 'clean' in module 'nh3' (no-name-in-module)

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

pylint 2.13.4
astroid 2.11.7
Python 3.9.1

Also applies to newer version

pylint 2.17.4
astroid 2.15.5
Python 3.9.1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Duplicate 🐫Duplicate of an already existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions