mark: fix typing for `@pytest.mark.xfail(raises=...)`
This commit is contained in:
parent
7f7a36478a
commit
1a73e78698
|
@ -28,6 +28,9 @@ from _pytest.config import Config
|
||||||
from _pytest.outcomes import fail
|
from _pytest.outcomes import fail
|
||||||
from _pytest.warning_types import PytestUnknownMarkWarning
|
from _pytest.warning_types import PytestUnknownMarkWarning
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from typing import Type
|
||||||
|
|
||||||
|
|
||||||
EMPTY_PARAMETERSET_OPTION = "empty_parameter_set_mark"
|
EMPTY_PARAMETERSET_OPTION = "empty_parameter_set_mark"
|
||||||
|
|
||||||
|
@ -413,7 +416,9 @@ if TYPE_CHECKING:
|
||||||
*conditions: Union[str, bool],
|
*conditions: Union[str, bool],
|
||||||
reason: str = ...,
|
reason: str = ...,
|
||||||
run: bool = ...,
|
run: bool = ...,
|
||||||
raises: Union[BaseException, Tuple[BaseException, ...]] = ...,
|
raises: Union[
|
||||||
|
"Type[BaseException]", Tuple["Type[BaseException]", ...]
|
||||||
|
] = ...,
|
||||||
strict: bool = ...
|
strict: bool = ...
|
||||||
) -> MarkDecorator:
|
) -> MarkDecorator:
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
Loading…
Reference in New Issue