mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-02 01:23:24 +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:
@@ -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