We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ed5687 commit 547933dCopy full SHA for 547933d
pytest_asyncio/plugin.py
@@ -5,6 +5,7 @@
5
import functools
6
import inspect
7
import socket
8
+import sys
9
import warnings
10
from typing import (
11
Any,
@@ -24,7 +25,11 @@
24
25
)
26
27
import pytest
-from typing_extensions import Literal
28
+
29
+if sys.version_info >= (3, 8):
30
+ from typing import Literal
31
+else:
32
+ from typing_extensions import Literal
33
34
_R = TypeVar("_R")
35
setup.cfg
@@ -39,7 +39,7 @@ setup_requires =
39
40
install_requires =
41
pytest >= 6.1.0
42
- typing-extensions >= 4.0
+ typing-extensions >= 4.0; python_version < "3.8"
43
44
[options.extras_require]
45
testing =
0 commit comments