fix(deps): update dependency astroid to <=4.1.2 #576
Reference in New Issue
Block a user
Delete Branch "renovate/astroid-4.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
<=4.1.1→<=4.1.2Release Notes
pylint-dev/astroid (astroid)
v4.1.2Compare Source
============================
Release date: 2026-03-22
Fix crash accessing property
fsetin generic classes with type annotations.Closes #2996
Fix infinite recursion caused by cyclic inference in
Constraint.Fix
RecursionErrorin_compute_mro()when circular class hierarchiesare created through runtime name rebinding. Circular bases are now resolved
to the original class instead of recursing.
Closes #2967
Closes pylint-dev/pylint#10821
Fix
DuplicateBasesErrorcrash in dataclass transform when a class hasduplicate bases in its MRO (e.g.,
Protocolappearing both directly andindirectly). Catch
MroErrorat.mro()call sites inbrain_dataclasses.py, consistent with the existing pattern elsewhere.Closes #2628
Fix
FunctionModelreturning descriptor attributes for builtin functions.Closes #2743
Catch
MemoryErrorwhen inferring f-strings with extremely large formatwidths (e.g.
f'{0:11111111111}') so that inference yieldsUninferableinstead of crashing.
Closes #2762
Fix
ValueErrorin__str__/reprand error messages when nodes haveextreme values (very long identifiers or large integers). Clamp pprint width
to a minimum of 1 and truncate oversized values in error messages.
Closes #2764
v4.1.1Compare Source
============================
Release date: 2026-02-22
Let
UnboundMethodModelinherit fromFunctionModelto improve inference ofdunder methods for unbound methods.
Refs #2741
Filter
UnknownfromUnboundMethodandSuperspecial attributelookup to prevent placeholder nodes from leaking during inference.
Refs #2741
v4.1.0Compare Source
============================
Release date: 2026-02-08
Add support for equality constraints (
==,!=) in inference.Closes pylint-dev/pylint#3632
Closes pylint-dev/pylint#3633
Ensure
ast.JoinedStrnodes areUninferablewhen theast.FormattedValueisUninferable. This preventsunexpected-keyword-argmessages in Pylintwhere the
Uninferablestring appeared in function arguments that wereconstructed dynamically.
Closes pylint-dev/pylint#10822
Add support for type constraints (
isinstance(x, y)) in inference.Closes pylint-dev/pylint#1162
Closes pylint-dev/pylint#4635
Closes pylint-dev/pylint#10469
Make
type.__new__()raise clear errors instead of returningNoneMove object dunder methods from
FunctionModeltoObjectModelto make themavailable on all object types, not just functions.
Closes #2742
Closes #2741
Closes pylint-dev/pylint#6094
linenoandend_linenoare now available onArguments.Add helper to iterate over all annotations nodes of function arguments,
Arguments.get_annotations().Refs #2860
Skip direct parent when determining the
Decoratorframe.Refs pylint-dev/pylint#8425
Add simple command line interface for astroid to output generated AST.
Use with
python -m astroid.Fix incorrect type inference for
super().method()calls that returnSelf.Previously, astroid would infer the parent class type instead of the child class type,
causing pylint E1101 false positives in method chaining scenarios.
Closes #457
Add missing
dtypeandcastingparameters tonumpy.concatenatebrain.Closes #2870
Fix ability to detect .py modules inside PATH directories on Windows
described by a UNC path with a trailing backslash (
\)Fix
random.sampleinference crash when sequence contains uninferable elements.Closes #2518
Fix
random.samplecrash when cloningClassDeforFunctionDefnodes.Closes #2923
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.