Use _pytest.compat.TYPE_CHECKING
This commit is contained in:
parent
83813bf515
commit
5f4cd536f9
|
@ -15,9 +15,10 @@ from typing import Union
|
||||||
|
|
||||||
import py
|
import py
|
||||||
|
|
||||||
|
from _pytest.compat import TYPE_CHECKING
|
||||||
from _pytest.config.exceptions import UsageError
|
from _pytest.config.exceptions import UsageError
|
||||||
|
|
||||||
if False: # TYPE_CHECKING
|
if TYPE_CHECKING:
|
||||||
from typing import NoReturn
|
from typing import NoReturn
|
||||||
from typing_extensions import Literal # noqa: F401
|
from typing_extensions import Literal # noqa: F401
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue