Skip to content

Commit 7521eb1

Browse files
Bump astroid to 3.2.0 (#9606)
1 parent 6df4e1d commit 7521eb1

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

doc/whatsnew/fragments/9606.internal

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Update astroid version to 3.2.0.
2+
3+
Refs #9606

pyproject.toml

Lines changed: 1 addition & 1 deletion
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.1.0,<=3.2.0-dev0",
44+
"astroid>=3.2.0,<=3.3.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

Lines changed: 1 addition & 1 deletion
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.1.0 # Pinned to a specific version for tests
3+
astroid==3.2.0 # Pinned to a specific version for tests
44
typing-extensions~=4.11
55
py~=1.11.0
66
pytest~=7.4

tests/functional/r/regression_02/regression_4660.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def my_print(*args: Any) -> None:
1414
return
1515

1616

17-
# ---- This is OK ----
1817
class MyClass:
1918
def my_method(self, option: Literal["mandatory"]) -> Callable[..., Any]:
2019
return my_print
@@ -23,7 +22,6 @@ def my_method(self, option: Literal["mandatory"]) -> Callable[..., Any]:
2322
c = MyClass().my_method("mandatory")
2423
c(1, "foo")
2524

26-
# ---- This runs OK but pylint reports an error ----
2725
class MyClass1:
2826
@overload
2927
def my_method(self, option: Literal["mandatory"]) -> Callable[..., Any]:
@@ -42,4 +40,4 @@ def my_method(
4240

4341

4442
d = MyClass1().my_method("mandatory")
45-
d(1, "bar") # [not-callable]
43+
d(1, "bar")

tests/functional/r/regression_02/regression_4660.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)