Releases: pylint-dev/astroid
v2.15.0
-
astroid now supports
TryStar
nodes from python 3.11 and should be fully compatible with python 3.11.Closes #2028
-
Formattedvalue.postinit
is now keyword only. This is to allow correct typing of the
Formattedvalue
class.Refs #1516
-
Astroid
now supports custom import hooks. -
astroid
now infers return values from match cases. -
AstroidManager.clear_cache
now also clears the inference context cache.Refs #1780
-
Astroid
now retrieves the default values of keyword only arguments and sets them on
Arguments.kw_defaults
. -
Uninferable
now has the typeUninferableBase
. This is to facilitate correctly type annotating
code that uses this singleton.Closes #1680
-
Deprecate
modutils.is_standard_module()
. It will be removed in the next minor release.
Functionality has been replaced by two new functions,
modutils.is_stdlib_module()
andmodutils.module_in_path()
.Closes #2012
-
Fix
are_exclusive
function when a walrus operator is used insideIfExp.test
field.Closes #2022
v2.14.2
-
'_infer_str_format_call' won't crash anymore when the string it analyses are uninferable.
Closes pylint-dev/pylint#8109
v2.14.1
v2.14.0
v2.13.5
v2.13.4
- Fix issues with
typing_extensions.TypeVar
. - Fix
ClassDef.fromlino
for 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
Lock
to themultiprocessing
brain.
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
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