Releases: pylint-dev/astroid
v2.7.1
v2.7.0
-
Import from
astroid.node_classes
andastroid.scoped_nodes
has been deprecated in favor of
astroid.nodes
. Only the imports fromastroid.nodes
will work in astroid 3.0.0. -
Add support for arbitrary Enum subclass hierachies
Closes pylint-dev/pylint#533
Closes pylint-dev/pylint#2224
Closes pylint-dev/pylint#2626 -
Add inference tips for dataclass attributes, including dataclasses.field calls.
Also add support for InitVar.Closes pylint-dev/pylint#2600
Closes pylint-dev/pylint#2698
Closes pylint-dev/pylint#3405
Closes pylint-dev/pylint#3794 -
Adds a brain that deals with dynamic import of
IsolatedAsyncioTestCase
class of theunittest
module.Closes pylint-dev/pylint#4060
v2.6.6
-
Added support to infer return type of
typing.cast()
-
Fix variable lookup's handling of exclusive statements
Closes pylint-dev/pylint#3711
-
Fix variable lookup's handling of function parameters
Closes #180
-
Fix variable lookup's handling of except clause variables
-
Fix handling of classes with duplicated bases with the same name
Closes #1088
v2.6.5
-
Fix a crash when there would be a 'TypeError object does not support
item assignment' in the code we parse.Closes pylint-dev/pylint#4439
-
Fix a crash when a AttributeInferenceError was raised when
failing to find the real name in infer_import_from.Closes pylint-dev/pylint#4692
v2.6.4
-
Fix a crash when a StopIteration was raised when inferring
a faulty function in a context manager.Closes pylint-dev/pylint#4723
v2.6.3
-
Added
If.is_sys_guard
andIf.is_typing_guard
helper methods -
Fix a bad inferenece type for yield values inside of a derived class.
Closes #1090
-
Fix a crash when the node is a 'Module' in the brain builtin inference
Closes pylint-dev/pylint#4671
-
Fix issues when inferring match variables
Closes pylint-dev/pylint#4685
-
Fix lookup for nested non-function scopes
-
Fix issue that
TypedDict
instance wasn't callable.Closes pylint-dev/pylint#4715
-
Add dependency on setuptools and a guard to prevent related exceptions.
v2.6.2
-
Fix a crash when the inference of the length of a node failed
Closes pylint-dev/pylint#4633
-
Fix unhandled StopIteration during inference, following the implementation
of PEP479 in python 3.7+Closes pylint-dev/pylint#4631
Closes #1080
v2.6.1
-
Fix issue with
TypedDict
for Python 3.9+Closes pylint-dev/pylint#4610
v2.6.0
-
Appveyor and travis are no longer used in the continuous integration
-
setuptools_scm
has been removed and replaced bytbump
in order to not
have hidden runtime dependencies to setuptools -
NodeNg
, the base node class, is now accessible fromastroid
or
astroid.nodes
as it can be used for typing. -
Update enum brain to improve inference of .name and .value dynamic class
attributesCloses pylint-dev/pylint#1932
Closes pylint-dev/pylint#2062
Closes pylint-dev/pylint#2306 -
Removed
Repr
,Exec
, andPrint
nodes as theast
nodes
they represented have been removed with the change to Python 3 -
Deprecate
Ellipsis
node. It will be removed with the next minor release.
Checkers that already support Python 3.8+ work without issues. It's only
necessary to remove all references to theastroid.Ellipsis
node.
This changes will make development of checkers easier as the resulting tree for Ellipsis
will no longer depend on the python version. Background: With Python 3.8 the
ast.Ellipsis
node, along withast.Str
,ast.Bytes
,ast.Num
,
andast.NamedConstant
were merged intoast.Constant
. -
Deprecated
Index
andExtSlice
nodes. They will be removed with the
next minor release. Both are now part of theSubscript
node.
Checkers that already support Python 3.9+ work without issues.
It's only necessary to remove all references to theastroid.Index
and
astroid.ExtSlice
nodes. This change will make development of checkers
easier as the resulting tree forast.Subscript
nodes will no longer
depend on the python version. Background: With Python 3.9ast.Index
andast.ExtSlice
were merged into theast.Subscript
node. -
Updated all Match nodes to be internally consistent.
-
Add
Pattern
base class.
Test for new release workflow without scm_setuptool
v2.6.0-dev0 Bump astroid to 2.6.0-dev0, update changelog