File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ from enum import Enum
9
9
import sys
10
10
11
11
mm = MutableMapping [str , Any ]
12
- _D = TypeVar ('_D' , mm )
12
+ _D = TypeVar ('_D' , bound = mm )
13
13
if sys .version_info >= (3 ,):
14
14
_Path = str
15
15
else :
Original file line number Diff line number Diff line change @@ -12,14 +12,15 @@ from contextlib import ContextManager
12
12
13
13
14
14
_T = TypeVar ('_T' )
15
- _FT = TypeVar ('_FT' , Callable [[Any ], Any ])
15
+ _FT = TypeVar ('_FT' , bound = Callable [[Any ], Any ])
16
16
_E = TypeVar ('_E' , bound = Exception )
17
17
18
18
19
- def skip (reason : str ) -> Callable [[_FT ], _FT ]: ...
20
- def skipIf (condition : object , reason : str ) -> Callable [[_FT ], _FT ]: ...
21
- def skipUnless (condition : object , reason : str ) -> Callable [[_FT ], _FT ]: ...
22
19
def expectedFailure (func : _FT ) -> _FT : ...
20
+ # TODO: Once python/mypy#1551 is fixed, the following need _FT instead of Any
21
+ def skip (reason : str ) -> Callable [[Any ], Any ]: ...
22
+ def skipIf (condition : object , reason : str ) -> Callable [[Any ], Any ]: ...
23
+ def skipUnless (condition : object , reason : str ) -> Callable [[Any ], Any ]: ...
23
24
24
25
class SkipTest (Exception ):
25
26
def __init__ (self , reason : str ) -> None : ...
You can’t perform that action at this time.
0 commit comments