v3.2.0
-
.pyi
stub files are now preferred over.py
files when resolving imports, (except for numpy).Closes pylint-dev/pylint#9185
-
igetattr()
returns the last same-named function in a class (instead of
the first). This avoids false positives in pylint with@overload
.Closes #1015
Refs pylint-dev/pylint#4696 -
Adds
module_denylist
toAstroidManager
for modules to be skipped during AST
generation. Modules in this list will cause anAstroidImportError
to be raised
when an AST for them is requested. -
Make
astroid.interpreter._import.util.is_namespace
only consider modules
using a loader set toNamespaceLoader
orNone
as namespaces.
This fixes a problem thatsix.moves
brain was not effective ifsix.moves
was already imported.Closes #1107