Skip to content

Commit 3856200

Browse files
committed
Type annotate fixtures.py & related
1 parent d839686 commit 3856200

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
if self._capture_fixture:
156156
other_name = next(

0 commit comments

Comments
 (0)