Skip to content

Commit 94641f5

Browse files
authored
Revert "Make all single-constraint TypeVars to use bounds" (#806)
Reverts #804. Reason: until python/mypy#1551 is fixed this gives an error whenever @Skip() is used. Specifically see #804 (comment).
1 parent b46366e commit 94641f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/2and3/plistlib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ from enum import Enum
99
import sys
1010

1111
mm = MutableMapping[str, Any]
12-
_D = TypeVar('_D', bound=mm)
12+
_D = TypeVar('_D', mm)
1313
if sys.version_info >= (3,):
1414
_Path = str
1515
else:

stdlib/3/unittest/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from contextlib import ContextManager
1212

1313

1414
_T = TypeVar('_T')
15-
_FT = TypeVar('_FT', bound=Callable[[Any], Any])
15+
_FT = TypeVar('_FT', Callable[[Any], Any])
1616

1717

1818
def skip(reason: str) -> Callable[[_FT], _FT]: ...

0 commit comments

Comments
 (0)