chore(deps): update dependency astroid to v2.15.8 #14

Open
renovate-bot wants to merge 1 commit from renovate/astroid-2.x into master
Member

This PR contains the following updates:

Package Update Change
astroid minor ==2.12.12 -> ==2.15.8

Release Notes

pylint-dev/astroid (astroid)

v2.15.8

Compare Source

=============================
Release date: 2023-09-26

v2.15.7

Compare Source

=============================
Release date: 2023-09-23

  • Fix a crash when inferring a typing.TypeVar call.

    Closes pylint-dev/pylint#8802

  • Infer user-defined enum classes by checking if the class is a subtype of enum.Enum.

    Closes pylint-dev/pylint#8897

  • Fix inference of functions with @functools.lru_cache decorators without
    parentheses.

    Closes pylint-dev/pylint#8868

  • Make sys.argv uninferable because it never is. (It's impossible to infer
    the value it will have outside of static analysis where it's our own value.)

    Refs pylint-dev/pylint#7710

v2.15.6

Compare Source

=============================
Release date: 2023-07-08

v2.15.5

Compare Source

=============================
Release date: 2023-05-14

v2.15.4

Compare Source

=============================
Release date: 2023-04-24

  • Add visitor function for TryStar to AsStringVisitor and
    add TryStar to astroid.nodes.ALL_NODE_CLASSES.

    Refs #​2142

v2.15.3

Compare Source

=============================
Release date: 2023-04-16

  • Fix infer_call_result() crash on methods called with_metaclass().

    Closes #​1735

  • Suppress UserWarning when finding module specs.

    Closes pylint-dev/pylint#7906

v2.15.2

Compare Source

=============================
Release date: 2023-04-03

v2.15.1

Compare Source

=============================
Release date: 2023-03-26

v2.15.0

Compare Source

=============================
Release date: 2023-03-06

  • astroid now supports TryStar nodes from python 3.11 and should be fully compatible with python 3.11.

    Closes #​2028

  • Formattedvalue.postinit is now keyword only. This is to allow correct typing of the
    Formattedvalue class.

    Refs #​1516

  • Astroid now supports custom import hooks.

    Refs pylint-dev/pylint#7306

  • astroid now infers return values from match cases.

    Refs pylint-dev/pylint#5288

  • AstroidManager.clear_cache now also clears the inference context cache.

    Refs #​1780

  • max_inferable_values can now be set on AstroidManager instances, e.g. astroid.MANAGER
    besides just the AstroidManager class itself.

    Closes #​2280

  • Astroid now retrieves the default values of keyword only arguments and sets them on
    Arguments.kw_defaults.

  • Uninferable now has the type UninferableBase. This is to facilitate correctly type annotating
    code that uses this singleton.

    Closes #​1680

  • Deprecate modutils.is_standard_module(). It will be removed in the next minor release.
    Functionality has been replaced by two new functions,
    modutils.is_stdlib_module() and modutils.module_in_path().

    Closes #​2012

  • Fix are_exclusive function when a walrus operator is used inside IfExp.test field.

    Closes #​2022

v2.14.2

Compare Source

=============================
Release date: 2023-02-12

  • '_infer_str_format_call' won't crash anymore when the string it analyses are uninferable.

    Closes pylint-dev/pylint#8109

v2.14.1

Compare Source

=============================
Release date: 2023-01-31

  • Revert CallContext change as it caused a RecursionError regression.

v2.14.0

Compare Source

=============================
Release date: 2023-01-31

  • Add support for inferring binary union types added in Python 3.10.

    Refs pylint-dev/pylint#8119

  • Capture and log messages emitted when inspecting a module for astroid.

    Closes #​1904

v2.13.5

Compare Source

=============================
Release date: 2023-01-31

  • Revert CallContext change as it caused a RecursionError regression.

v2.13.4

Compare Source

=============================
Release date: 2023-01-31

  • Fix issues with typing_extensions.TypeVar.

  • Fix ClassDef.fromlino for PyPy 3.8 (v7.3.11) if class is wrapped by a decorator.

  • Preserve parent CallContext when inferring nested functions.

    Closes pylint-dev/pylint#8074

  • Add Lock to the multiprocessing brain.

    Closes pylint-dev/pylint#3313

v2.13.3

Compare Source

=============================
Release date: 2023-01-20

  • Fix a regression in 2.13.2 where a RunTimeError could be raised unexpectedly.

    Closes #​1958

  • Fix overwritten attributes in inherited dataclasses not being ordered correctly.

    Closes pylint-dev/pylint#7881

  • Fix a false positive when an attribute named Enum was confused with enum.Enum.
    Calls to Enum are now inferred & the qualified name is checked.

    Refs pylint-dev/pylint#5719

  • Remove unnecessary typing_extensions dependency on Python 3.11 and newer

v2.13.2

Compare Source

=============================
Release date: 2023-01-08

  • Removed version conditions on typing_extensions dependency. Removed typing_extensions from
    our tests requirements as it was preventing issues to appear in our continuous integration.

    Closes #​1945

v2.13.1

Compare Source

=============================
Release date: 2023-01-08

  • Bumping typing_extensions to 4.0.0 that is required when using Self

    Closes #​1942

v2.13.0

Compare Source

=============================
Release date: 2023-01-07

v2.12.14

Compare Source

==============================
Release date: 2023-01-06

v2.12.13

Compare Source

==============================
Release date: 2022-11-19

  • Prevent returning an empty list for ClassDef.slots() when the mro list contains one class & it is not object.

    Refs pylint-dev/pylint#5099

  • Prevent a crash when inferring calls to str.format with inferred arguments
    that would be invalid.

    Closes #​1856

  • Infer the length argument of the random.sample function.

    Refs pylint-dev/pylint#7706

  • Catch ValueError when indexing some builtin containers and sequences during inference.

    Closes #​1843


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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [astroid](https://github.com/pylint-dev/astroid) | minor | `==2.12.12` -> `==2.15.8` | --- ### Release Notes <details> <summary>pylint-dev/astroid (astroid)</summary> ### [`v2.15.8`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2158) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.15.7...v2.15.8) \============================= Release date: 2023-09-26 - Fix a regression in 2.15.7 for `unsubscriptable-object`. Closes [#&#8203;2305](https://github.com/pylint-dev/astroid/issues/2305) Closes [pylint-dev/pylint#9069](https://github.com/pylint-dev/pylint/issues/9069) - Fix a regression in 2.15.7 for `unsubscriptable-object`. Closes [#&#8203;2305](https://github.com/pylint-dev/astroid/issues/2305) Closes [pylint-dev/pylint#9069](https://github.com/pylint-dev/pylint/issues/9069) ### [`v2.15.7`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2157) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.15.6...v2.15.7) \============================= Release date: 2023-09-23 - Fix a crash when inferring a `typing.TypeVar` call. Closes [pylint-dev/pylint#8802](https://github.com/pylint-dev/pylint/issues/8802) - Infer user-defined enum classes by checking if the class is a subtype of `enum.Enum`. Closes [pylint-dev/pylint#8897](https://github.com/pylint-dev/pylint/issues/8897) - Fix inference of functions with `@functools.lru_cache` decorators without parentheses. Closes [pylint-dev/pylint#8868](https://github.com/pylint-dev/pylint/issues/8868) - Make `sys.argv` uninferable because it never is. (It's impossible to infer the value it will have outside of static analysis where it's our own value.) Refs [pylint-dev/pylint#7710](https://github.com/pylint-dev/pylint/issues/7710) ### [`v2.15.6`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2156) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.15.5...v2.15.6) \============================= Release date: 2023-07-08 - Harden `get_module_part()` against `"."`. Closes [pylint-dev/pylint#8749](https://github.com/pylint-dev/pylint/issues/8749) - Allow `AsStringVisitor` to visit `objects.PartialFunction`. Closes [pylint-dev/pylint#8881](https://github.com/pylint-dev/pylint/issues/8881) - Avoid expensive list/tuple multiplication operations that would result in `MemoryError`. Closes [pylint-dev/pylint#8748](https://github.com/pylint-dev/pylint/issues/8748) - Fix a regression in 2.12.0 where settings in AstroidManager would be ignored. Most notably this addresses [pylint-dev/pylint#7433](https://github.com/pylint-dev/pylint/issues/7433). Refs [#&#8203;2204](https://github.com/pylint-dev/astroid/issues/2204) ### [`v2.15.5`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2155) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.15.4...v2.15.5) \============================= Release date: 2023-05-14 - Handle `objects.Super` in `helpers.object_type()`. Refs [pylint-dev/pylint#8554](https://github.com/pylint-dev/pylint/issues/8554) - Recognize stub `pyi` Python files. Refs [pylint-dev/pylint#4987](https://github.com/pylint-dev/pylint/issues/4987) ### [`v2.15.4`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2154) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.15.3...v2.15.4) \============================= Release date: 2023-04-24 - Add visitor function for `TryStar` to `AsStringVisitor` and add `TryStar` to `astroid.nodes.ALL_NODE_CLASSES`. Refs [#&#8203;2142](https://github.com/pylint-dev/astroid/issues/2142) ### [`v2.15.3`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2153) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.15.2...v2.15.3) \============================= Release date: 2023-04-16 - Fix `infer_call_result()` crash on methods called `with_metaclass()`. Closes [#&#8203;1735](https://github.com/pylint-dev/astroid/issues/1735) - Suppress `UserWarning` when finding module specs. Closes [pylint-dev/pylint#7906](https://github.com/pylint-dev/pylint/issues/7906) ### [`v2.15.2`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2152) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.15.1...v2.15.2) \============================= Release date: 2023-04-03 - Support more possible usages of `attrs` decorators. Closes [pylint-dev/pylint#7884](https://github.com/pylint-dev/pylint/issues/7884) ### [`v2.15.1`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2151) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.15.0...v2.15.1) \============================= Release date: 2023-03-26 - Restore behavior of setting a Call as a base for classes created using `six.with_metaclass()`, and harden support for using enums as metaclasses in this case. Reverts [#&#8203;1622](https://github.com/pylint-dev/astroid/issues/1622) Refs [pylint-dev/pylint#5935](https://github.com/pylint-dev/pylint/issues/5935) Refs [pylint-dev/pylint#7506](https://github.com/pylint-dev/pylint/issues/7506) ### [`v2.15.0`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2150) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.14.2...v2.15.0) \============================= Release date: 2023-03-06 - astroid now supports `TryStar` nodes from python 3.11 and should be fully compatible with python 3.11. Closes [#&#8203;2028](https://github.com/pylint-dev/astroid/issues/2028) - `Formattedvalue.postinit` is now keyword only. This is to allow correct typing of the `Formattedvalue` class. Refs [#&#8203;1516](https://github.com/pylint-dev/astroid/issues/1516) - `Astroid` now supports custom import hooks. Refs [pylint-dev/pylint#7306](https://github.com/pylint-dev/pylint/issues/7306) - `astroid` now infers return values from match cases. Refs [pylint-dev/pylint#5288](https://github.com/pylint-dev/pylint/issues/5288) - `AstroidManager.clear_cache` now also clears the inference context cache. Refs [#&#8203;1780](https://github.com/pylint-dev/astroid/issues/1780) - `max_inferable_values` can now be set on `AstroidManager` instances, e.g. `astroid.MANAGER` besides just the `AstroidManager` class itself. Closes [#&#8203;2280](https://github.com/pylint-dev/astroid/issues/2280) - `Astroid` now retrieves the default values of keyword only arguments and sets them on `Arguments.kw_defaults`. - `Uninferable` now has the type `UninferableBase`. This is to facilitate correctly type annotating code that uses this singleton. Closes [#&#8203;1680](https://github.com/pylint-dev/astroid/issues/1680) - Deprecate `modutils.is_standard_module()`. It will be removed in the next minor release. Functionality has been replaced by two new functions, `modutils.is_stdlib_module()` and `modutils.module_in_path()`. Closes [#&#8203;2012](https://github.com/pylint-dev/astroid/issues/2012) - Fix `are_exclusive` function when a walrus operator is used inside `IfExp.test` field. Closes [#&#8203;2022](https://github.com/pylint-dev/astroid/issues/2022) ### [`v2.14.2`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2142) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.14.1...v2.14.2) \============================= Release date: 2023-02-12 - '\_infer_str_format_call' won't crash anymore when the string it analyses are uninferable. Closes [pylint-dev/pylint#8109](https://github.com/pylint-dev/pylint/issues/8109) ### [`v2.14.1`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2141) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.14.0...v2.14.1) \============================= Release date: 2023-01-31 - Revert `CallContext` change as it caused a `RecursionError` regression. ### [`v2.14.0`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2140) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.13.5...v2.14.0) \============================= Release date: 2023-01-31 - Add support for inferring binary union types added in Python 3.10. Refs [pylint-dev/pylint#8119](https://github.com/pylint-dev/pylint/issues/8119) - Capture and log messages emitted when inspecting a module for astroid. Closes [#&#8203;1904](https://github.com/pylint-dev/astroid/issues/1904) ### [`v2.13.5`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2135) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.13.4...v2.13.5) \============================= Release date: 2023-01-31 - Revert `CallContext` change as it caused a `RecursionError` regression. ### [`v2.13.4`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2134) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.13.3...v2.13.4) \============================= Release date: 2023-01-31 - Fix issues with `typing_extensions.TypeVar`. - Fix `ClassDef.fromlino` for PyPy 3.8 (v7.3.11) if class is wrapped by a decorator. - Preserve parent CallContext when inferring nested functions. Closes [pylint-dev/pylint#8074](https://github.com/pylint-dev/pylint/issues/8074) - Add `Lock` to the `multiprocessing` brain. Closes [pylint-dev/pylint#3313](https://github.com/pylint-dev/pylint/issues/3313) ### [`v2.13.3`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2133) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.13.2...v2.13.3) \============================= Release date: 2023-01-20 - Fix a regression in 2.13.2 where a RunTimeError could be raised unexpectedly. Closes [#&#8203;1958](https://github.com/pylint-dev/astroid/issues/1958) - Fix overwritten attributes in inherited dataclasses not being ordered correctly. Closes [pylint-dev/pylint#7881](https://github.com/pylint-dev/pylint/issues/7881) - Fix a false positive when an attribute named `Enum` was confused with `enum.Enum`. Calls to `Enum` are now inferred & the qualified name is checked. Refs [pylint-dev/pylint#5719](https://github.com/pylint-dev/pylint/issues/5719) - Remove unnecessary typing_extensions dependency on Python 3.11 and newer ### [`v2.13.2`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2132) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.13.1...v2.13.2) \============================= Release date: 2023-01-08 - Removed version conditions on typing_extensions dependency. Removed typing_extensions from our tests requirements as it was preventing issues to appear in our continuous integration. Closes [#&#8203;1945](https://github.com/pylint-dev/astroid/issues/1945) ### [`v2.13.1`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2131) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.13.0...v2.13.1) \============================= Release date: 2023-01-08 - Bumping typing_extensions to 4.0.0 that is required when using `Self` Closes [#&#8203;1942](https://github.com/pylint-dev/astroid/issues/1942) ### [`v2.13.0`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-2130) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.12.14...v2.13.0) \============================= Release date: 2023-01-07 - Fixed importing of modules that have the same name as the file that is importing. `astroid` will now correctly handle an `import math` statement in a file called `math.py` by relying on the import system. Refs [pylint-dev/pylint#5151](https://github.com/pylint-dev/pylint/issues/5151) - Create `ContextManagerModel` and let `GeneratorModel` inherit from it. Refs [pylint-dev/pylint#2567](https://github.com/pylint-dev/pylint/issues/2567) - Added a `regex` brain. Refs [pylint-dev/pylint#1911](https://github.com/pylint-dev/pylint/issues/1911) - Support "is None" constraints from if statements during inference. Ref [#&#8203;791](https://github.com/pylint-dev/astroid/issues/791) Ref [pylint-dev/pylint#157](https://github.com/pylint-dev/pylint/issues/157) Ref [pylint-dev/pylint#1472](https://github.com/pylint-dev/pylint/issues/1472) Ref [pylint-dev/pylint#2016](https://github.com/pylint-dev/pylint/issues/2016) Ref [pylint-dev/pylint#2631](https://github.com/pylint-dev/pylint/issues/2631) Ref [pylint-dev/pylint#2880](https://github.com/pylint-dev/pylint/issues/2880) ### [`v2.12.14`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-21214) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.12.13...v2.12.14) \============================== Release date: 2023-01-06 - Handle the effect of properties on the `__init__` of a dataclass correctly. Closes [pylint-dev/pylint#5225](https://github.com/pylint-dev/pylint/issues/5225) - Handle the effect of `kw_only=True` in dataclass fields correctly. Closes [pylint-dev/pylint#7623](https://github.com/pylint-dev/pylint/issues/7623) - Handle the effect of `init=False` in dataclass fields correctly. Closes [pylint-dev/pylint#7291](https://github.com/pylint-dev/pylint/issues/7291) - Fix crash if `numpy` module doesn't have `version` attribute. Refs [pylint-dev/pylint#7868](https://github.com/pylint-dev/pylint/issues/7868) - Handle `AttributeError` during `str.format` template inference tip evaluation Closes [pylint-dev/pylint#1902](https://github.com/pylint-dev/pylint/issues/1902) - Add the `masked_invalid` function in the `numpy.ma` brain. Closes [pylint-dev/pylint#5715](https://github.com/pylint-dev/pylint/issues/5715) ### [`v2.12.13`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-21213) [Compare Source](https://github.com/pylint-dev/astroid/compare/v2.12.12...v2.12.13) \============================== Release date: 2022-11-19 - Prevent returning an empty list for `ClassDef.slots()` when the mro list contains one class & it is not `object`. Refs [pylint-dev/pylint#5099](https://github.com/pylint-dev/pylint/issues/5099) - Prevent a crash when inferring calls to `str.format` with inferred arguments that would be invalid. Closes [#&#8203;1856](https://github.com/pylint-dev/astroid/issues/1856) - Infer the `length` argument of the `random.sample` function. Refs [pylint-dev/pylint#7706](https://github.com/pylint-dev/pylint/issues/7706) - Catch `ValueError` when indexing some builtin containers and sequences during inference. Closes [#&#8203;1843](https://github.com/pylint-dev/astroid/issues/1843) </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zODUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM4OC4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbInJlbm92YXRlLWJvdCJdfQ==-->
renovate-bot added the
renovate-bot
label 2024-06-04 10:24:36 +05:30
renovate-bot added 1 commit 2024-06-04 10:24:37 +05:30
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/astroid-2.x:renovate/astroid-2.x
git checkout renovate/astroid-2.x

Merge

Merge the changes and update on Forgejo.
git checkout master
git merge --no-ff renovate/astroid-2.x
git checkout master
git merge --ff-only renovate/astroid-2.x
git checkout renovate/astroid-2.x
git rebase master
git checkout master
git merge --no-ff renovate/astroid-2.x
git checkout master
git merge --squash renovate/astroid-2.x
git checkout master
git merge --ff-only renovate/astroid-2.x
git checkout master
git merge renovate/astroid-2.x
git push origin master
Sign in to join this conversation.
No description provided.