diff --git a/mip/typing.mpy b/mip/typing.mpy index ebad0a056..c33cbd018 100644 Binary files a/mip/typing.mpy and b/mip/typing.mpy differ diff --git a/mip/typing.py b/mip/typing.py index 7fdf91167..5a53c6b83 100644 --- a/mip/typing.py +++ b/mip/typing.py @@ -1,4 +1,5 @@ -__version__ = "1.26.1" +__version__ = "1.27.0" + def cast(type, val): return val @@ -20,6 +21,10 @@ def overload(func): return None +def override(func): + return func + + class _AnyCall: def __init__(*args, **kwargs): pass @@ -30,6 +35,7 @@ def __call__(*args, **kwargs): def __getitem__(self, arg): return _anyCall + _anyCall = _AnyCall() @@ -41,7 +47,7 @@ def __getitem__(self, arg): _Subscriptable = _SubscriptableType() -def TypeVar(name, *types, bound: Any | None = None, covariant = False, contravariant = False, infer_variance = False): +def TypeVar(name, *types, bound: Any | None = None, covariant=False, contravariant=False, infer_variance=False): return None @@ -125,7 +131,6 @@ class Protocol: # Pattern = str # Match = str - AbstractSet = _Subscriptable AsyncContextManager = _Subscriptable AsyncGenerator = _Subscriptable diff --git a/mip/typing_extensions.mpy b/mip/typing_extensions.mpy index 4283642fc..9d21feca7 100644 Binary files a/mip/typing_extensions.mpy and b/mip/typing_extensions.mpy differ diff --git a/mip/typing_extensions.py b/mip/typing_extensions.py index 6052925ff..5a53c6b83 100644 --- a/mip/typing_extensions.py +++ b/mip/typing_extensions.py @@ -1,4 +1,5 @@ -__version__ = "1.24.1.post2" +__version__ = "1.27.0" + def cast(type, val): return val @@ -20,6 +21,10 @@ def overload(func): return None +def override(func): + return func + + class _AnyCall: def __init__(*args, **kwargs): pass @@ -30,6 +35,7 @@ def __call__(*args, **kwargs): def __getitem__(self, arg): return _anyCall + _anyCall = _AnyCall() @@ -41,7 +47,7 @@ def __getitem__(self, arg): _Subscriptable = _SubscriptableType() -def TypeVar(name, *types, bound: Any | None = None, covariant = False, contravariant = False, infer_variance = False): +def TypeVar(name, *types, bound: Any | None = None, covariant=False, contravariant=False, infer_variance=False): return None @@ -118,11 +124,13 @@ class Protocol: AnyStr = str -Text = str -Pattern = str -Match = str TypedDict = dict +# Deprecated +# Text = str +# Pattern = str +# Match = str + AbstractSet = _Subscriptable AsyncContextManager = _Subscriptable AsyncGenerator = _Subscriptable