Skip to content
This repository was archived by the owner on Apr 25, 2021. It is now read-only.

Commit cb2252c

Browse files
committed
machine.pyi 업데이트
- components(device) -> List 추가 - crash() 추가
1 parent 70cdda9 commit cb2252c

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/umodules/machine.pyi

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# machine
22
"functions related to the hardware"
3-
from typing import Dict, List, Any, Union, Callable
3+
from typing import Dict, List, Any, Union, Callable, overload
44

55

66
# TODO: List to Tuple?
@@ -25,10 +25,16 @@ def signal(ticks: int) -> List:
2525
pass
2626

2727

28+
@overload
2829
def components() -> Dict[str, str]:
2930
pass
3031

3132

33+
@overload
34+
def components(device: str) -> List[str]:
35+
pass
36+
37+
3238
def methods(address: str) -> List[str]:
3339
pass
3440

@@ -67,3 +73,7 @@ def hook_print(func):
6773

6874
def hook_signal(func):
6975
pass
76+
77+
78+
def crash(message: str):
79+
return None

0 commit comments

Comments
 (0)