[client-python] chore(deps): update dependency astroid to v4#230
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
[client-python] chore(deps): update dependency astroid to v4#230renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #230 +/- ##
=======================================
Coverage 70.06% 70.06%
=======================================
Files 49 49
Lines 1941 1941
=======================================
Hits 1360 1360
Misses 581 581
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==3.3.8→==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
v4.0.4Compare Source
============================
Release date: 2026-02-07
Fix
is_namespace()crash when search locations containpathlib.Pathobjects.Closes #2942
v4.0.3Compare Source
============================
Release date: 2026-01-03
Fix inference of
IfExp(ternary expression) nodes to avoid prematurely narrowingresults in the face of inference ambiguity.
Closes #2899
Fix base class inference for dataclasses using the PEP 695 typing syntax.
Refs pylint-dev/pylint#10788
v4.0.2Compare Source
============================
Release date: 2025-11-09
Handle FunctionDef blockstart_tolineno edge cases correctly.
Refs #2880
Add
HTTPMethodenum support to brain module for Python 3.11+.Refs pylint-dev/pylint#10624
Closes #2877
v4.0.1Compare Source
============================
Release date: 2025-10-11
Suppress
SyntaxWarningfor invalid escape sequences and return in finally onPython 3.14 when parsing modules.
Assign
ImportandImportFromnodes to module locals if used withglobal.Closes pylint-dev/pylint#10632
v4.0.0Compare Source
============================
Release date: 2025-10-05
Support constraints from ternary expressions in inference.
Closes pylint-dev/pylint#9729
Handle deprecated
bool(NotImplemented)cast in const nodes.Add support for boolean truthiness constraints (
x,not x) in inference.Closes pylint-dev/pylint#9515
Fix false positive
invalid-nameonattrsclasses withClassVarannotated variables.Closes pylint-dev/pylint#10525
Prevent crash when parsing deeply nested parentheses causing MemoryError in python's built-in ast.
Closes #2643
Fix crash when inferring namedtuple with invalid field name looking like f-string formatting.
Closes #2519
Fix false positive no-member in except * handler.
Closes pylint-dev/pylint#9056
Fix crash when comparing invalid dict literal
Closes #2522
Removed internal functions
infer_numpy_member,name_looks_like_numpy_member, andattribute_looks_like_numpy_memberfromastroid.brain.brain_numpy_utils.To alleviate circular imports, the
managerargument toAstroidBuilder()is now required.Constants now have a parent of
nodes.SYNTHETIC_ROOT.Fix crashes with large positive and negative list multipliers.
Closes #2521
Closes #2523
Fix precedence of
patharg inmodpath_from_file_with_callbackto be higher thansys.pathFollowing a deprecation period, the
futureargument was removed fromstatement()andframe().Improve consistency of
JoinedStrinference by not raisingInferenceErrorandreturning either
Uninferableor a fully resolvedConst.Closes #2621
Fix crash when typing._alias() call is missing arguments.
Closes #2513
Remove support for Python 3.9 (and constant
PY310_PLUS).Include subclasses of standard property classes as
propertydecoratorsCloses #10377
Modify
astroid.basesandtests.test_nodesto reflect thatenum.propertywas added in Python 3.11, not 3.10Fix incorrect result in
_get_relative_base_pathwhen the target directory name starts with the base pathCloses #2608
The brain for nose was dropped. nose has been deprecated for 10 years and the brain required some maintenance.
Refs #2765
Fix a crash when the root of a node is not a module but is unknown.
Closes #2672
Add basic support for
ast.TemplateStrandast.Interpolationadded in Python 3.14.Refs #2789
Add support for type parameter defaults added in Python 3.13.
Improve
as_string()representation forTypeVar,ParamSpecandTypeVarTuplenodes, as well astype parameter in
ClassDef,FuncDefandTypeAliasnodes (PEP 695).Astroid now correctly supports the
exceptionsattribute ofExceptionGroup.Closes pylint-dev/pylint#8985
Closes pylint-dev/pylint#10558
Deprecate importing node classes from
astroiddirectly. This will be removed in v5.It's recommended to import them from
astroid.nodesinstead.Refs #2837
v3.3.11Compare Source
=============================
Release date: 2025-07-13
Fix a crash when parsing an empty arbitrary expression with
extract_node(extract_node("__()")).Closes #2734
Fix a crash when parsing a slice called in a decorator on a function that is also decorated with
a known
sixdecorator.Closes #2721
v3.3.10Compare Source
=============================
Release date: 2025-05-10
Avoid importing submodules sharing names with standard library modules.
Closes #2684
Fix bug where
pylint code.custom_extensionwould analyzecode.pyorcode.pyiinstead if they existed.Closes pylint-dev/pylint#3631
v3.3.9Compare Source
============================
Release date: 2025-03-09
Fix crash when
sys.modulescontains lazy loader objects during checking.Closes #2686
Closes pylint-dev/pylint#8589
Upload release assets to PyPI via Trusted Publishing.
Refs pylint-dev/pylint#10256
Configuration
📅 Schedule: (in timezone Europe/Paris)
* 0-4,22-23 * * 1-5)* * * * 0,6)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.