Skip to content

Update dependency astroid to v4.1.2#857

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/astroid-4.x
Open

Update dependency astroid to v4.1.2#857
renovate[bot] wants to merge 1 commit intomainfrom
renovate/astroid-4.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Feb 8, 2026

This PR contains the following updates:

Package Change Age Confidence
astroid ==4.0.3==4.1.2 age confidence

Release Notes

pylint-dev/astroid (astroid)

v4.1.2

Compare Source

============================
Release date: 2026-03-22

  • Fix crash accessing property fset in generic classes with type annotations.
    Closes #​2996

  • Fix infinite recursion caused by cyclic inference in Constraint.

  • Fix RecursionError in _compute_mro() when circular class hierarchies
    are 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 DuplicateBasesError crash in dataclass transform when a class has
    duplicate bases in its MRO (e.g., Protocol appearing both directly and
    indirectly). Catch MroError at .mro() call sites in
    brain_dataclasses.py, consistent with the existing pattern elsewhere.

    Closes #​2628

  • Fix FunctionModel returning descriptor attributes for builtin functions.

    Closes #​2743

  • Catch MemoryError when inferring f-strings with extremely large format
    widths (e.g. f'{0:11111111111}') so that inference yields Uninferable
    instead of crashing.

    Closes #​2762

  • Fix ValueError in __str__/repr and error messages when nodes have
    extreme 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.1

Compare Source

============================
Release date: 2026-02-22

  • Let UnboundMethodModel inherit from FunctionModel to improve inference of
    dunder methods for unbound methods.

    Refs #​2741

  • Filter Unknown from UnboundMethod and Super special attribute
    lookup to prevent placeholder nodes from leaking during inference.

    Refs #​2741

v4.1.0

Compare 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.JoinedStr nodes are Uninferable when the ast.FormattedValue is
    Uninferable. This prevents unexpected-keyword-arg messages in Pylint
    where the Uninferable string appeared in function arguments that were
    constructed 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 returning None

  • Move object dunder methods from FunctionModel to ObjectModel to make them
    available on all object types, not just functions.

    Closes #​2742
    Closes #​2741
    Closes pylint-dev/pylint#6094

  • lineno and end_lineno are now available on Arguments.

  • Add helper to iterate over all annotations nodes of function arguments,
    Arguments.get_annotations().

    Refs #​2860

  • Skip direct parent when determining the Decorator frame.

    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 return Self.
    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 dtype and casting parameters to numpy.concatenate brain.

    Closes #​2870

  • Fix ability to detect .py modules inside PATH directories on Windows
    described by a UNC path with a trailing backslash (\)

    • Example: modutils.modpath_from_file(filename=r"\Mac\Code\tests\test_resources.py", path=["\mac\code"]) == ['tests', 'test_resources']
  • Fix random.sample inference crash when sequence contains uninferable elements.

    Closes #​2518

  • Fix random.sample crash when cloning ClassDef or FunctionDef nodes.

    Closes #​2923

v4.0.4

Compare Source

============================
Release date: 2026-02-07

  • Fix is_namespace() crash when search locations contain pathlib.Path objects.

    Closes #​2942


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 becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 8, 2026

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5847e90) to head (f1bbf59).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #857   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          106       106           
  Lines         1884      1884           
  Branches       311       311           
=========================================
  Hits          1884      1884           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@renovate renovate bot changed the title Update dependency astroid to v4.0.4 Update dependency astroid to v4.1.0 Feb 9, 2026
@renovate renovate bot force-pushed the renovate/astroid-4.x branch from f1bbf59 to 0db61f7 Compare February 9, 2026 05:24
@sir-gon sir-gon force-pushed the renovate/astroid-4.x branch from 0db61f7 to 2ed3818 Compare February 9, 2026 18:22
@renovate renovate bot force-pushed the renovate/astroid-4.x branch 5 times, most recently from 37bd3be to 7d0ff79 Compare February 13, 2026 03:40
@renovate renovate bot force-pushed the renovate/astroid-4.x branch 2 times, most recently from 7967e02 to e6167c8 Compare February 20, 2026 19:31
@renovate renovate bot changed the title Update dependency astroid to v4.1.0 Update dependency astroid to v4.1.1 Feb 23, 2026
@renovate renovate bot force-pushed the renovate/astroid-4.x branch from e6167c8 to 73d7419 Compare February 23, 2026 05:17
@renovate renovate bot force-pushed the renovate/astroid-4.x branch 2 times, most recently from 4c63702 to 156aff2 Compare March 5, 2026 20:20
@renovate renovate bot force-pushed the renovate/astroid-4.x branch 2 times, most recently from 0908e06 to 9594ed7 Compare March 20, 2026 13:56
@renovate renovate bot changed the title Update dependency astroid to v4.1.1 Update dependency astroid to v4.1.2 Mar 22, 2026
@renovate renovate bot force-pushed the renovate/astroid-4.x branch from 9594ed7 to ef1633e Compare March 22, 2026 21:33
@renovate renovate bot force-pushed the renovate/astroid-4.x branch from ef1633e to 1fe6151 Compare March 26, 2026 17:55
@@ -1,4 +1,4 @@
astroid==4.0.3
astroid==4.1.2

Check warning

Code scanning / Snyk Open Source

Medium severity - Regular Expression Denial of Service (ReDoS) vulnerability in pygments Medium

This file introduces a vulnerable pygments package with a medium severity vulnerability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant