Skip to content

Commit

Permalink
Type annotate fixtures.py & related
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Feb 28, 2020
1 parent f77d606 commit cba62b6
Show file tree
Hide file tree
Showing 7 changed files with 204 additions and 109 deletions.
4 changes: 2 additions & 2 deletions src/_pytest/capture.py
Expand Up @@ -19,7 +19,7 @@
from _pytest.compat import CaptureIO
from _pytest.compat import TYPE_CHECKING
from _pytest.config import Config
from _pytest.fixtures import FixtureRequest
from _pytest.fixtures import SubRequest

if TYPE_CHECKING:
from typing_extensions import Literal
Expand Down Expand Up @@ -157,7 +157,7 @@ def read_global_capture(self):

@contextlib.contextmanager
def _capturing_for_request(
self, request: FixtureRequest
self, request: SubRequest,
) -> Generator["CaptureFixture", None, None]:
"""
Context manager that creates a ``CaptureFixture`` instance for the
Expand Down

0 comments on commit cba62b6

Please sign in to comment.