Releases: pylint-dev/astroid
v2.13.3
-
Fix a regression in 2.13.2 where a RunTimeError could be raised unexpectedly.
Closes #1958
-
Fix overwritten attributes in inherited dataclasses not being ordered correctly.
Closes pylint-dev/pylint#7881
-
Fix a false positive when an attribute named
Enum
was confused withenum.Enum
.
Calls toEnum
are now inferred & the qualified name is checked.
v2.13.2
v2.13.1
v2.13.0
-
Fixed importing of modules that have the same name as the file that is importing.
astroid
will now correctly handle animport math
statement in a file calledmath.py
by relying on the import system. -
Create
ContextManagerModel
and letGeneratorModel
inherit from it. -
Added a
regex
brain. -
Support "is None" constraints from if statements during inference.
Refs #791
Refs pylint-dev/pylint#157
Refs pylint-dev/pylint#1472
Refs pylint-dev/pylint#2016
Refs pylint-dev/pylint#2631
Refs pylint-dev/pylint#2880
v2.12.14
-
Handle the effect of properties on the
__init__
of a dataclass correctly.Closes pylint-dev/pylint#5225
-
Handle the effect of
kw_only=True
in dataclass fields correctly.Closes pylint-dev/pylint#7623
-
Handle the effect of
init=False
in dataclass fields correctly.Closes pylint-dev/pylint#7291
-
Fix crash if
numpy
module doesn't haveversion
attribute. -
Handle
AttributeError
duringstr.format
template inference tip evaluationCloses pylint-dev/pylint#1902
v2.12.13
-
Prevent returning an empty list for
ClassDef.slots()
when the mro list contains one class & it is notobject
. -
Prevent a crash when inferring calls to
str.format
with inferred arguments
that would be invalid.Closes #1856
-
Infer the
length
argument of therandom.sample
function. -
Catch
ValueError
when indexing some builtin containers and sequences during inference.Closes #1843
v2.12.12
-
Add the
length
parameter tohash.digest
&hash.hexdigest
in thehashlib
brain. -
Prevent a crash when a module's
__path__
attribute is unexpectedly missing. -
Fix inferring attributes with empty annotation assignments if parent
class contains valid assignment.
v2.12.11
-
Improve detection of namespace packages for the modules with
__spec__
set to None.Closes pylint-dev/pylint#7488.
-
Fixed a regression in the creation of the
__init__
of dataclasses with
multiple inheritance.Closes pylint-dev/pylint#7434
v2.12.10
-
Fixed a crash when introspecting modules compiled by
cffi
.Closes #1776
Closes pylint-dev/pylint#7399 -
decorators.cached
now gets its cache cleared by callingAstroidManager.clear_cache
.Refs #1780
v2.12.9
-
Fixed creation of the
__init__
ofdataclassess
with multiple inheritance.Closes pylint-dev/pylint#7427
-
Fixed a crash on
namedtuples
that usetypename
to specify their name.Closes pylint-dev/pylint#7429