Skip to content

Commit cf8d439

Browse files
committed
Hide non-existentos._exit in MicroPython by updating the os module stubs
Signed-off-by: Jos Verlinde <Jos.Verlinde@microsoft.com>
1 parent 69a35d0 commit cf8d439

File tree

1 file changed

+7
-1
lines changed
  • publish/micropython-stdlib-stubs

1 file changed

+7
-1
lines changed

publish/micropython-stdlib-stubs/build.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,13 @@
129129
# comment out some lines to hide the existance of CPython apis that do not exists in MicroPython
130130
COMMENT_OUT_LINES = [
131131
("asyncio", ["from .subprocess import *"]),
132-
("os", ["from . import path as _path"]),
132+
(
133+
"os",
134+
[
135+
"from . import path as _path",
136+
"def _exit(status: int) -> NoReturn: ...",
137+
],
138+
),
133139
]
134140

135141
# change some lines to hide the existance of CPython apis that do not exists in MicroPython

0 commit comments

Comments
 (0)