Skip to content

Commit b9cdf0e

Browse files
committed
[refactor] Remove dependency on typing_extensions.
Signed-off-by: Michael Seifert <[email protected]>
1 parent 2acb8df commit b9cdf0e

File tree

6 files changed

+1
-7
lines changed

6 files changed

+1
-7
lines changed

dependencies/default/constraints.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ sortedcontainers==2.4.0
2020
tomli==2.0.1
2121
trio==0.22.2
2222
typed-ast==1.5.5
23-
typing-extensions==4.7.1
2423
zipp==3.17.0

dependencies/default/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# Always adjust install_requires in setup.cfg and pytest-min-requirements.txt
22
# when changing runtime dependencies
33
pytest >= 7.0.0
4-
typing-extensions >= 4.0; python_version < "3.11"

dependencies/pytest-min/constraints.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ requests==2.28.1
1919
sortedcontainers==2.4.0
2020
tomli==2.0.1
2121
urllib3==1.26.12
22-
typing-extensions==4.7.1
2322
xmlschema==2.1.1
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# Always adjust install_requires in setup.cfg and requirements.txt
22
# when changing minimum version dependencies
33
pytest[testing] == 7.0.0
4-
typing-extensions >= 4.0; python_version < "3.11"

pytest_asyncio/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
Session,
3838
StashKey,
3939
)
40-
from typing_extensions import Self
4140

4241
_R = TypeVar("_R")
4342

@@ -366,7 +365,7 @@ def substitute(cls, item: pytest.Function, /) -> pytest.Function:
366365
return item
367366

368367
@classmethod
369-
def _from_function(cls, function: pytest.Function, /) -> Self:
368+
def _from_function(cls, function: pytest.Function, /) -> pytest.Function:
370369
"""
371370
Instantiates this specific PytestAsyncioFunction type from the specified
372371
pytest.Function item.

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ include_package_data = True
4141
# Always adjust requirements.txt and pytest-min-requirements.txt when changing runtime dependencies
4242
install_requires =
4343
pytest >= 7.0.0
44-
typing-extensions >= 4.0;python_version < "3.11"
4544

4645
[options.extras_require]
4746
testing =

0 commit comments

Comments
 (0)