Type annotate fixtures.py & related

This commit is contained in:
Ran Benita
2020-05-01 14:40:15 +03:00
parent be00e12d47
commit ef34729541
6 changed files with 193 additions and 106 deletions

View File

@@ -65,6 +65,7 @@ from _pytest.warning_types import PytestUnhandledCoroutineWarning
if TYPE_CHECKING:
from typing_extensions import Literal
from _pytest.fixtures import _Scope
def pytest_addoption(parser: Parser) -> None:
@@ -905,7 +906,7 @@ class Metafunc:
Callable[[object], Optional[object]],
]
] = None,
scope: "Optional[str]" = None,
scope: "Optional[_Scope]" = None,
*,
_param_mark: Optional[Mark] = None
) -> None: