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

Bump astroid to 3.2.0 #9606

Merged
merged 3 commits into from
May 7, 2024
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/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.

Loading