|
Changelog:
===========
- .pyi stub files are now preferred over .py files when resolving imports, (except for numpy).
- igetattr() returns the last same-named function in a class (instead of
the first). This avoids false positives in pylint with @overload.
- Adds module_denylist to AstroidManager for modules to be skipped during AST
generation. Modules in this list will cause an AstroidImportError to be raised
when an AST for them is requested.
- Make astroid.interpreter._import.util.is_namespace only consider modules
using a loader set to NamespaceLoader or None as namespaces.
This fixes a problem that six.moves brain was not effective if six.moves
was already imported.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|