Skip to content

Commit 4022ef0

Browse files
committed
fixup! pytester: typing for spawn/spawn_pytest
1 parent d3d58cc commit 4022ef0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/_pytest/pytester.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
from typing import Optional
1919
from typing import Sequence
2020
from typing import Tuple
21+
22+
try:
23+
from typing import TYPE_CHECKING
24+
except ImportError:
25+
from typing_extensions import TYPE_CHECKING
2126
from typing import Union
2227
from weakref import WeakKeyDictionary
2328

@@ -35,7 +40,7 @@
3540
from _pytest.pathlib import Path
3641
from _pytest.reports import TestReport
3742

38-
if False: # TYPE_CHECKING
43+
if TYPE_CHECKING:
3944
from typing import Type
4045

4146
import pexpect

0 commit comments

Comments
 (0)