Skip to content

Update dependency astroid to v4.1.0#857

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

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

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 8, 2026

This PR contains the following updates:

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

Release Notes

pylint-dev/astroid (astroid)

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

sonarqubecloud bot commented Feb 8, 2026

@codecov
Copy link

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 4 times, most recently from 49d27bc to 37bd3be Compare February 13, 2026 03:34
@renovate renovate bot force-pushed the renovate/astroid-4.x branch from 37bd3be to 7d0ff79 Compare February 13, 2026 03:40
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.

0 participants