Bump astroid to 3.2.0 (#9606)
diff --git a/doc/whatsnew/fragments/9606.internal b/doc/whatsnew/fragments/9606.internal
new file mode 100644
index 0000000..a63efb7
--- /dev/null
+++ b/doc/whatsnew/fragments/9606.internal
@@ -0,0 +1,3 @@
+Update astroid version to 3.2.0.
+
+Refs #9606
diff --git a/pyproject.toml b/pyproject.toml
index 4507b23..9972af3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -41,7 +41,7 @@
# 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.1.0,<=3.2.0-dev0",
+ "astroid>=3.2.0,<=3.3.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 67221bf..bd52288 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.1.0 # Pinned to a specific version for tests
+astroid==3.2.0 # Pinned to a specific version for tests
typing-extensions~=4.11
py~=1.11.0
pytest~=7.4
diff --git a/tests/functional/r/regression_02/regression_4660.py b/tests/functional/r/regression_02/regression_4660.py
index b3dee05..6a051f6 100644
--- a/tests/functional/r/regression_02/regression_4660.py
+++ b/tests/functional/r/regression_02/regression_4660.py
@@ -14,7 +14,6 @@
return
-# ---- This is OK ----
class MyClass:
def my_method(self, option: Literal["mandatory"]) -> Callable[..., Any]:
return my_print
@@ -23,7 +22,6 @@
c = MyClass().my_method("mandatory")
c(1, "foo")
-# ---- This runs OK but pylint reports an error ----
class MyClass1:
@overload
def my_method(self, option: Literal["mandatory"]) -> Callable[..., Any]:
@@ -42,4 +40,4 @@
d = MyClass1().my_method("mandatory")
-d(1, "bar") # [not-callable]
+d(1, "bar")
diff --git a/tests/functional/r/regression_02/regression_4660.txt b/tests/functional/r/regression_02/regression_4660.txt
deleted file mode 100644
index 59b48ec..0000000
--- a/tests/functional/r/regression_02/regression_4660.txt
+++ /dev/null
@@ -1 +0,0 @@
-not-callable:45:0:45:11::d is not callable:UNDEFINED