Skip to content

Commit afad3d8

Browse files
committed
Type annotate fixtures.py & related
1 parent 56a5dbe commit afad3d8

File tree

7 files changed

+208
-114
lines changed

7 files changed

+208
-114
lines changed

src/_pytest/capture.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from _pytest.compat import CaptureAndPassthroughIO
1919
from _pytest.compat import CaptureIO
2020
from _pytest.config import Config
21-
from _pytest.fixtures import FixtureRequest
2221

2322
patchsysdict = {0: "stdin", 1: "stdout", 2: "stderr"}
2423

@@ -150,7 +149,7 @@ def read_global_capture(self):
150149

151150
@contextlib.contextmanager
152151
def _capturing_for_request(
153-
self, request: FixtureRequest
152+
self, request
154153
) -> Generator["CaptureFixture", None, None]:
155154
if self._capture_fixture:
156155
other_name = next(

0 commit comments

Comments
 (0)