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:
Guido van Rossum
2017-01-01 16:35:50 -08:00
committed by GitHub
parent b46366e77d
commit 94641f5a84
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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]: ...