Skip to content

Commit 755f2d0

Browse files
[Backport maintenance/4.0.x] Upgrade astroid to 4.0.2 (#10733)
Upgrade astroid to 4.0.2 (#10730) Closes #10624 (cherry picked from commit 361a2b8) Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent c96a9e4 commit 755f2d0

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies = [
4040
# Also upgrade requirements_test_min.txt.
4141
# Pinned to dev of second minor update to allow editable installs and fix primer issues,
4242
# see https://github.com/pylint-dev/astroid/issues/1341
43-
"astroid>=4.0.1,<=4.1.dev0",
43+
"astroid>=4.0.2,<=4.1.dev0",
4444
"colorama>=0.4.5; sys_platform=='win32'",
4545
"dill>=0.2; python_version<'3.11'",
4646
"dill>=0.3.6; 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==4.0.1 # Pinned to a specific version for tests
3+
astroid==4.0.2 # Pinned to a specific version for tests
44
typing-extensions~=4.15
55
py~=1.11.0
66
pytest~=8.4

tests/functional/u/unused/unused_name_in_string_literal_type_annotation_py38.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from argparse import ArgumentParser # [unused-import]
44
from argparse import Namespace # [unused-import]
55
import http # [unused-import]
6-
from http import HTTPStatus
6+
from http import HTTPStatus, HTTPMethod
77
import typing as t
88
from typing import Literal as Lit
99

@@ -25,3 +25,6 @@ def unused_variable_example():
2525
# See https://peps.python.org/pep-0586/#literals-enums-and-forward-references
2626
example4: t.Literal["http.HTTPStatus.OK", "http.HTTPStatus.NOT_FOUND"]
2727
example5: "t.Literal[HTTPStatus.OK, HTTPStatus.NOT_FOUND]"
28+
29+
# Regression test for https://github.com/pylint-dev/pylint/issues/10624
30+
print(HTTPMethod.CONNECT)

0 commit comments

Comments
 (0)