mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-28 22:02:24 +08:00
committed by
Łukasz Langa
parent
1515ed9f88
commit
ac651d2f8c
@@ -16,10 +16,9 @@ _E = TypeVar('_E', bound=Exception)
|
||||
|
||||
|
||||
def expectedFailure(func: _FT) -> _FT: ...
|
||||
# TODO: Once python/mypy#1551 is fixed, the following need _FT instead of Any
|
||||
def skip(reason: str) -> Callable[[Any], Any]: ...
|
||||
def skipIf(condition: object, reason: str) -> Callable[[Any], Any]: ...
|
||||
def skipUnless(condition: object, reason: str) -> Callable[[Any], Any]: ...
|
||||
def skip(reason: str) -> Callable[[_FT], _FT]: ...
|
||||
def skipIf(condition: object, reason: str) -> Callable[[_FT], _FT]: ...
|
||||
def skipUnless(condition: object, reason: str) -> Callable[[_FT], _FT]: ...
|
||||
|
||||
class SkipTest(Exception):
|
||||
def __init__(self, reason: str) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user