Skip to content

Commit 4e9225e

Browse files
authored
Add typing-extensions to test dependencies (#1586)
1 parent 9d41e5d commit 4e9225e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

requirements_test_min.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pytest
2+
typing-extensions>=3.10

tests/unittest_scoped_nodes.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
util,
3131
)
3232
from astroid.bases import BoundMethod, Generator, Instance, UnboundMethod
33-
from astroid.const import IS_PYPY, PY38, PY38_PLUS, PY310_PLUS, WIN32
33+
from astroid.const import IS_PYPY, PY38, PY38_PLUS
3434
from astroid.exceptions import (
3535
AttributeInferenceError,
3636
DuplicateBasesError,
@@ -1897,10 +1897,6 @@ class Final(Base[object]): pass
18971897
]
18981898
if not PY38_PLUS:
18991899
class_names.pop(-2)
1900-
# typing_extensions is not installed on this combination of version
1901-
# and platform
1902-
if PY310_PLUS and WIN32:
1903-
class_names.pop(-2)
19041900

19051901
final_def = module.body[-1]
19061902
self.assertEqual(class_names, sorted(i.name for i in final_def.mro()))

0 commit comments

Comments
 (0)