Releases: pylint-dev/astroid
v2.12.3
-
Fixed crash in
ExplicitNamespacePackageFinderinvolving_SixMetaPathImporter.Closes #1708
-
Fix unhandled
FutureWarningfrom pandas import in cython modulesCloses #1717
-
Fix false positive with inference of type-annotated Enum classes.
-
Fix crash with inference of type-annotated Enum classes where the member has no value.
-
Fix a crash inferring invalid old-style string formatting with
%.Closes #1737
-
Fix false positive with inference of
httpmodule when iteratingHTTPStatus. -
Bumped minimum requirement of
wraptto 1.14 on Python 3.11. -
Don't add dataclass fields annotated with
KW_ONLYto the list of fields.
v2.12.2
v2.12.1
-
Fix a crash when inferring old-style string formatting (
%) using tuples. -
Fix a crash when
None(or a value inferred asNone) participates in a
**expression. -
Fix a crash involving properties within
ifblocks.
v2.12.0
-
Fix signal has no
connectmember for PySide2 5.15.2+ and PySide6Closes #4040, #5378
-
astroidnow requires Python 3.7.2 to run. -
Avoid setting a Call as a base for classes created using
six.with_metaclass(). -
Fix detection of builtins on
PyPy3.9. -
Fix
rebrain on Python3.11. The flags now come fromre._compile. -
Build
nodes.Modulefor frozen modules which have location information in their
ModuleSpec.Closes #1512
-
The
astroid.mixinsmodule has been deprecated and marked for removal in 3.0.0.Closes #1633
-
Capture and log messages emitted by C extensions when importing them.
This prevents contaminating programmatic output, e.g. pylint's JSON reporter.Closes pylint-dev/pylint#3518
-
Calls to
str.formatare now correctly inferred. -
__new__and__init__have been added to theObjectModeland are now
inferred asBoundMethods. -
Old style string formatting (using
%operators) is now correctly inferred.Closes #151
-
Adds missing enums from
sslmodule.Closes pylint-dev/pylint#3691
-
Remove dependency on
pkg_resourcesfromsetuptools.Closes #1103
-
Allowed
AstroidManager.clear_cacheto reload necessary brain plugins. -
Fixed incorrect inferences after rebuilding the builtins module, e.g. by calling
AstroidManager.clear_cache.Closes #1559
-
On Python versions >= 3.9,
astroidnow understands subscripting
builtin classes such asenumerateorstaticmethod. -
Fixed inference of
Enumswhen they are imported under an alias.Closes pylint-dev/pylint#5776
-
Rename
ModuleSpec->module_typeconstructor parameter to match attribute
name and improve typing. Usetypeinstead. -
ObjectModelandClassModelnow know about their__new__and__call__attributes. -
Fixed pylint
not-callablefalse positive with nested-tuple assignment in a for-loop. -
Instances of builtins created with
__new__(cls, value)are now inferred. -
Infer the return value of the
.copy()method ondict,list,set,
andfrozenset.Closes #1403
-
Fixed inference of elements of living container objects such as tuples and sets in the
sysandsslmodules. -
Add
pathlibbrain to handlepathlib.PurePath.parentsinference.Closes pylint-dev/pylint#5783
-
Avoid inferring the results of
**operations involving values greater than1e5
to avoid expensive computation.Closes pylint-dev/pylint#6745
-
Fix test for Python
3.11. In some instanceserr.__traceback__will
be uninferable now. -
Add brain for numpy core module
einsumfunc.Closes pylint-dev/pylint#5821
-
Infer the
DictUnpackvalue forDict.getitemcalls.Closes #1195
-
Fix a crash involving properties within
try ... exceptblocks.Closes pylint-dev/pylint#6592
-
Prevent creating
Instanceobjects that proxy otherInstances when there is
ambiguity (or user error) in calling__new__(cls).
v2.11.7
-
Added support for
usedforsecuritykeyword tohashlibconstructors.Closes pylint-dev/pylint#6017
-
Updated the stdlib brain for
subprocess.Popento accommodate Python 3.9+.Closes pylint-dev/pylint#7092
v2.11.6
-
The Qt brain now correctly treats calling
.disconnect()(with no
arguments) on a slot as valid. -
The argparse brain no longer incorrectly adds
"Namespace"to the locals
of functions that return anargparse.Namespaceobject.
v2.11.5
-
Fix crash while obtaining
object_type()of anUnknownnode. -
Fix a bug where in attempting to handle the patching of
distutilsbyvirtualenv,
library submodules calleddistutils(e.g.numpy.distutils) were included also.
v2.11.4
-
Fix
col_offsetattribute for nodes involvingwithonPyPy. -
Fixed a crash involving two starred expressions: one inside a comprehension,
both inside a call. -
Made
FunctionDef.implicit_parametersreturn 1 for methods by making
FunctionDef.is_boundreturnTrue, as it does for class methods.Closes pylint-dev/pylint#6464
-
Fixed a crash when
_filter_stmtsencounters anEmptyNode.Closes pylint-dev/pylint#6438
v2.11.3
-
Fixed an error in the Qt brain when building
instance_attrs.Closes pylint-dev/pylint#6221
-
Fixed a crash in the
gibrain.Closes pylint-dev/pylint#6371
v2.11.2
-
Avoided adding the name of a parent namedtuple to its child's locals.