Skip to content

Commit

Permalink
Bump astroid to 3.2.0 (#9606)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed May 7, 2024
1 parent 6df4e1d commit 7521eb1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions doc/whatsnew/fragments/9606.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Update astroid version to 3.2.0.

Refs #9606
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.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'",
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.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
Expand Down
4 changes: 1 addition & 3 deletions tests/functional/r/regression_02/regression_4660.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def my_print(*args: Any) -> None:
return


# ---- This is OK ----
class MyClass:
def my_method(self, option: Literal["mandatory"]) -> Callable[..., Any]:
return my_print
Expand All @@ -23,7 +22,6 @@ def my_method(self, option: Literal["mandatory"]) -> Callable[..., Any]:
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]:
Expand All @@ -42,4 +40,4 @@ def my_method(


d = MyClass1().my_method("mandatory")
d(1, "bar") # [not-callable]
d(1, "bar")
1 change: 0 additions & 1 deletion tests/functional/r/regression_02/regression_4660.txt

This file was deleted.

0 comments on commit 7521eb1

Please sign in to comment.