Skip to content

Commit 98665f0

Browse files
committed
Revert "fixup! pytester: typing for spawn/spawn_pytest"
This reverts commit 4022ef0.
1 parent 4022ef0 commit 98665f0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/_pytest/pytester.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
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
2621
from typing import Union
2722
from weakref import WeakKeyDictionary
2823

@@ -40,7 +35,7 @@
4035
from _pytest.pathlib import Path
4136
from _pytest.reports import TestReport
4237

43-
if TYPE_CHECKING:
38+
if False: # TYPE_CHECKING
4439
from typing import Type
4540

4641
import pexpect

0 commit comments

Comments
 (0)