Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified mip/typing.mpy
Binary file not shown.
11 changes: 8 additions & 3 deletions mip/typing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__version__ = "1.26.1"
__version__ = "1.27.0"


def cast(type, val):
return val
Expand All @@ -20,6 +21,10 @@ def overload(func):
return None


def override(func):
return func


class _AnyCall:
def __init__(*args, **kwargs):
pass
Expand All @@ -30,6 +35,7 @@ def __call__(*args, **kwargs):
def __getitem__(self, arg):
return _anyCall


_anyCall = _AnyCall()


Expand All @@ -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


Expand Down Expand Up @@ -125,7 +131,6 @@ class Protocol:
# Pattern = str
# Match = str


AbstractSet = _Subscriptable
AsyncContextManager = _Subscriptable
AsyncGenerator = _Subscriptable
Expand Down
Binary file modified mip/typing_extensions.mpy
Binary file not shown.
18 changes: 13 additions & 5 deletions mip/typing_extensions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__version__ = "1.24.1.post2"
__version__ = "1.27.0"


def cast(type, val):
return val
Expand All @@ -20,6 +21,10 @@ def overload(func):
return None


def override(func):
return func


class _AnyCall:
def __init__(*args, **kwargs):
pass
Expand All @@ -30,6 +35,7 @@ def __call__(*args, **kwargs):
def __getitem__(self, arg):
return _anyCall


_anyCall = _AnyCall()


Expand All @@ -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


Expand Down Expand Up @@ -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
Expand Down
Loading