mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 12:44:33 +08:00
Make all single-constraint TypeVars use bound= insteads (plus hack) (#1118)
Another attempt for #804, to unblock python/mypy#2626. There's a work-around here for python/mypy#1551.
This commit is contained in:
1 parent
7c413c904d
commit
1ea3d2de57
2 files changed
+6
-5
No files matched your search
@@ -9,7 +9,7 @@ from enum import Enum
|
||||
import sys
|
||||
|
||||
mm = MutableMapping[str, Any]
|
||||
_D = TypeVar('_D', mm)
|
||||
_D = TypeVar('_D', bound=mm)
|
||||
if sys.version_info >= (3,):
|
||||
_Path = str
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user