mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +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:
@@ -9,7 +9,7 @@ from enum import Enum
|
||||
import sys
|
||||
|
||||
mm = MutableMapping[str, Any]
|
||||
_D = TypeVar('_D', bound=mm)
|
||||
_D = TypeVar('_D', mm)
|
||||
if sys.version_info >= (3,):
|
||||
_Path = str
|
||||
else:
|
||||
|
||||
@@ -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