Skip to content

Commit e064cab

Browse files
authored
Create __init__.py
Signed-off-by: JoBe <[email protected]>
1 parent 54d5f7c commit e064cab

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

python-stdlib/typing/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Typing module ported to MicroPython
2+
3+
# For official documentation, see https://github.com/python/cpython/blob/main/Lib/typing.py
4+
5+
class Any:
6+
"""typing.Any"""
7+
8+
def __init_subclass__(cls, **kwargs):
9+
if not "_root" in kwargs:
10+
raise TypeError("Any is not subclassable")
11+
12+
class Callable(Any, root):
13+
"""typing.Callable"""
14+
15+
class Generic:
16+
17+
def __class_getitem__(cls, items): ...
18+
def __init_subclass__(cls, **kwargs): ...
19+
def __new__(cls, *args, **kwargs): ...

0 commit comments

Comments
 (0)