Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport maintenance/3.3.x] Bump astroid from 3.3.5 to 3.3.8 (#10125) #10155

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/whatsnew/fragments/10112.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fix ``Unable to import 'collections.abc' (import-error)`` on Python 3.13.1.

Closes #10112
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_min.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/n/no/no_member_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/n/no/no_member_imports.rc
Original file line number Diff line number Diff line change
@@ -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
Loading