Releases: pylint-dev/astroid
v2.14.1
v2.14.0
v2.13.5
v2.13.4
- Fix issues with
typing_extensions.TypeVar. - Fix
ClassDef.fromlinofor PyPy 3.8 (v7.3.11) if class is wrapped by a decorator. - Preserve parent CallContext when inferring nested functions.
Closes pylint-dev/pylint#8074 - Add
Lockto themultiprocessingbrain.
Closes pylint-dev/pylint#3313
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
Enumwas confused withenum.Enum.
Calls toEnumare 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.
astroidwill now correctly handle animport mathstatement in a file calledmath.py
by relying on the import system. -
Create
ContextManagerModeland letGeneratorModelinherit from it. -
Added a
regexbrain. -
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=Truein dataclass fields correctly.Closes pylint-dev/pylint#7623
-
Handle the effect of
init=Falsein dataclass fields correctly.Closes pylint-dev/pylint#7291
-
Fix crash if
numpymodule doesn't haveversionattribute. -
Handle
AttributeErrorduringstr.formattemplate 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.formatwith inferred arguments
that would be invalid.Closes #1856
-
Infer the
lengthargument of therandom.samplefunction. -
Catch
ValueErrorwhen indexing some builtin containers and sequences during inference.Closes #1843