mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 00:24:24 +08:00
Revert "Make all single-constraint TypeVars to use bounds" (#806)
Reverts python/typeshed#804. Reason: until python/mypy#1551 is fixed this gives an error whenever @skip() is used. Specifically see https://github.com/python/typeshed/pull/804#issuecomment-269926655.
This commit is contained in:
@@ -12,7 +12,7 @@ from contextlib import ContextManager
|
||||
|
||||
|
||||
_T = TypeVar('_T')
|
||||
_FT = TypeVar('_FT', bound=Callable[[Any], Any])
|
||||
_FT = TypeVar('_FT', Callable[[Any], Any])
|
||||
|
||||
|
||||
def skip(reason: str) -> Callable[[_FT], _FT]: ...
|
||||
|
||||
Reference in New Issue
Block a user