Skip to content

Commit 14a3c02

Browse files
committed
add typing
1 parent e55f97a commit 14a3c02

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

python-stdlib/typing/manifest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
metadata(version="0.0.1")
2+
3+
module("typing.py")

python-stdlib/typing/typing.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Typing support. We don't have that.
3+
4+
Thus this code works with CPython checkers but has minimal impact on MicroPython:
5+
6+
from typing import TYPE_CHECKING
7+
if TYPE_CHECKING:
8+
from typing import whatever, you, need
9+
10+
def foo() -> whatever:
11+
...
12+
"""
13+
TYPE_CHECKING = const(False)

0 commit comments

Comments
 (0)