Skip to content

Commit c0c4ca9

Browse files
committed
Type annotate fixtures.py & related
1 parent 7fc9d4c commit c0c4ca9

File tree

7 files changed

+202
-108
lines changed

7 files changed

+202
-108
lines changed

src/_pytest/capture.py

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

2323
patchsysdict = {0: "stdin", 1: "stdout", 2: "stderr"}
2424

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

151151
@contextlib.contextmanager
152152
def _capturing_for_request(
153-
self, request: FixtureRequest
153+
self, request: SubRequest,
154154
) -> Generator["CaptureFixture", None, None]:
155155
"""
156156
Context manager that creates a ``CaptureFixture`` instance for the

0 commit comments

Comments
 (0)