Releases: pylint-dev/astroid
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
v2.12.12
-
Add the
lengthparameter tohash.digest&hash.hexdigestin thehashlibbrain. -
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.cachednow gets its cache cleared by callingAstroidManager.clear_cache.Refs #1780
v2.12.9
-
Fixed creation of the
__init__ofdataclassesswith multiple inheritance.Closes pylint-dev/pylint#7427
-
Fixed a crash on
namedtuplesthat usetypenameto specify their name.Closes pylint-dev/pylint#7429
v2.12.8
-
Fixed a crash in the
dataclassbrain forInitVarswithout subscript typing.Closes pylint-dev/pylint#7422
-
Fixed parsing of default values in
dataclassattributes.Closes pylint-dev/pylint#7425
v2.12.7
-
Fixed a crash in the
dataclassbrain for uninferable bases.Closes pylint-dev/pylint#7418
v2.12.6
-
Fix a crash involving
Uninferablearguments tonamedtuple().Closes pylint-dev/pylint#7375
-
The
dataclassbrain now understands thekw_onlykeyword in dataclass decorators.Closes pylint-dev/pylint#7290
v2.12.5
-
Prevent first-party imports from being resolved to
site-packages. -
Fix
astroid.interpreter._import.util.is_namespace()incorrectly
returningTruefor frozen stdlib modules on PyPy.Closes #1755
v2.12.4
-
Fixed a crash involving non-standard type comments such as
# type: # any comment.