From 58324cc4738a021003ac0ee03a2430eb833c319b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 17:59:34 -0800 Subject: [PATCH] Bump astroid from 3.3.5 to 3.3.8 (#10125) (cherry picked from commit 31e7674ad44c9cbd3120e7e42497bf8af911df79) --- doc/whatsnew/fragments/10112.bugfix | 3 +++ pyproject.toml | 2 +- requirements_test_min.txt | 2 +- tests/functional/n/no/no_member_imports.py | 4 ++-- tests/functional/n/no/no_member_imports.rc | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 doc/whatsnew/fragments/10112.bugfix diff --git a/doc/whatsnew/fragments/10112.bugfix b/doc/whatsnew/fragments/10112.bugfix new file mode 100644 index 0000000000..9a442696c3 --- /dev/null +++ b/doc/whatsnew/fragments/10112.bugfix @@ -0,0 +1,3 @@ +Fix ``Unable to import 'collections.abc' (import-error)`` on Python 3.13.1. + +Closes #10112 diff --git a/pyproject.toml b/pyproject.toml index 4dfbd99dfe..8d56ce3a7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ dependencies = [ # Also upgrade requirements_test_min.txt. # Pinned to dev of second minor update to allow editable installs and fix primer issues, # see https://github.com/pylint-dev/astroid/issues/1341 - "astroid>=3.3.5,<=3.4.0-dev0", + "astroid>=3.3.8,<=3.4.0-dev0", "isort>=4.2.5,<6,!=5.13.0", "mccabe>=0.6,<0.8", "tomli>=1.1.0;python_version<'3.11'", diff --git a/requirements_test_min.txt b/requirements_test_min.txt index c14b34b837..68ce269740 100644 --- a/requirements_test_min.txt +++ b/requirements_test_min.txt @@ -1,6 +1,6 @@ .[testutils,spelling] # astroid dependency is also defined in pyproject.toml -astroid==3.3.5 # Pinned to a specific version for tests +astroid==3.3.8 # Pinned to a specific version for tests typing-extensions~=4.12 py~=1.11.0 pytest~=8.3 diff --git a/tests/functional/n/no/no_member_imports.py b/tests/functional/n/no/no_member_imports.py index ead6d93352..225a215f2f 100644 --- a/tests/functional/n/no/no_member_imports.py +++ b/tests/functional/n/no/no_member_imports.py @@ -33,9 +33,9 @@ def test_ignored_modules_root_one_applies_as_well() -> None: def test_ignored_modules_patterns() -> None: - import collections + import importlib - collections.abc.THIS_does_not_EXIST + importlib.metadata.THIS_does_not_EXIST def test_ignored_classes_no_recursive_pattern() -> None: diff --git a/tests/functional/n/no/no_member_imports.rc b/tests/functional/n/no/no_member_imports.rc index 59db427c27..55b91f9fda 100644 --- a/tests/functional/n/no/no_member_imports.rc +++ b/tests/functional/n/no/no_member_imports.rc @@ -1,3 +1,3 @@ [TYPECHECK] -ignored-modules=argparse,xml.etree.,collections.abc* +ignored-modules=argparse,xml.etree.,importlib.metadata* ignored-classes=sys*,optparse.Values,Option