Skip to content

Commit 1f9b947

Browse files
Bump astroid from 3.3.5 to 3.3.8 (#10125) (#10155)
(cherry picked from commit 31e7674)
1 parent 96d1303 commit 1f9b947

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

doc/whatsnew/fragments/10112.bugfix

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix ``Unable to import 'collections.abc' (import-error)`` on Python 3.13.1.
2+
3+
Closes #10112

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies = [
4141
# Also upgrade requirements_test_min.txt.
4242
# Pinned to dev of second minor update to allow editable installs and fix primer issues,
4343
# see https://github.com/pylint-dev/astroid/issues/1341
44-
"astroid>=3.3.5,<=3.4.0-dev0",
44+
"astroid>=3.3.8,<=3.4.0-dev0",
4545
"isort>=4.2.5,<6,!=5.13.0",
4646
"mccabe>=0.6,<0.8",
4747
"tomli>=1.1.0;python_version<'3.11'",

requirements_test_min.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.[testutils,spelling]
22
# astroid dependency is also defined in pyproject.toml
3-
astroid==3.3.5 # Pinned to a specific version for tests
3+
astroid==3.3.8 # Pinned to a specific version for tests
44
typing-extensions~=4.12
55
py~=1.11.0
66
pytest~=8.3

tests/functional/n/no/no_member_imports.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def test_ignored_modules_root_one_applies_as_well() -> None:
3333

3434

3535
def test_ignored_modules_patterns() -> None:
36-
import collections
36+
import importlib
3737

38-
collections.abc.THIS_does_not_EXIST
38+
importlib.metadata.THIS_does_not_EXIST
3939

4040

4141
def test_ignored_classes_no_recursive_pattern() -> None:
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[TYPECHECK]
2-
ignored-modules=argparse,xml.etree.,collections.abc*
2+
ignored-modules=argparse,xml.etree.,importlib.metadata*
33
ignored-classes=sys*,optparse.Values,Option

0 commit comments

Comments
 (0)