Skip to content

Improve the situation for no-name-in-module for C extensions and modules using dynamic features #1524

@chrisspen

Description

@chrisspen

I have the ProxyTypes package installed and have a file mymodule.py that imports it like:

from peak.util.proxies import CallbackProxy

However, pylint throws this false error for it:

E:  8, 0: No name 'util' in module 'mymodule.peak' (no-name-in-module)

Pylint should reference the peak package installed into my virtualenv, and not assume it's a local non-existent module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentation 📗False Positive 🦟A message is emitted but nothing is wrong with the codeHigh priorityIssue with more than 10 reactionsMinor 💅Polishing pylint is always niceNeeds investigation 🔬A bug or crash where it's not immediately obvious what is happenning

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions