Skip to content

Commit 9122d0b

Browse files
committed
Added type hints to multiterminal
1 parent 591cc1a commit 9122d0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shared-bindings/multiterminal/__init__.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//| serial connection and the optional secondary connection."""
3838
//|
3939

40-
//| def get_secondary_terminal() -> Any:
40+
//| def get_secondary_terminal() -> secondary_terminal:
4141
//| """Returns the current secondary terminal."""
4242
//| ...
4343
//|
@@ -46,7 +46,7 @@ STATIC mp_obj_t multiterminal_obj_get_secondary_terminal() {
4646
}
4747
MP_DEFINE_CONST_FUN_OBJ_0(multiterminal_get_secondary_terminal_obj, multiterminal_obj_get_secondary_terminal);
4848

49-
//| def set_secondary_terminal(stream: stream) -> Any:
49+
//| def set_secondary_terminal(stream: stream) -> None:
5050
//| """Read additional input from the given stream and write out back to it.
5151
//| This doesn't replace the core stream (usually UART or native USB) but is
5252
//| mixed in instead.
@@ -68,7 +68,7 @@ STATIC mp_obj_t multiterminal_obj_set_secondary_terminal(mp_obj_t secondary_term
6868
}
6969
MP_DEFINE_CONST_FUN_OBJ_1(multiterminal_set_secondary_terminal_obj, multiterminal_obj_set_secondary_terminal);
7070

71-
//| def clear_secondary_terminal() -> Any:
71+
//| def clear_secondary_terminal() -> None:
7272
//| """Clears the secondary terminal."""
7373
//| ...
7474
//|
@@ -78,7 +78,7 @@ STATIC mp_obj_t multiterminal_obj_clear_secondary_terminal() {
7878
}
7979
MP_DEFINE_CONST_FUN_OBJ_0(multiterminal_clear_secondary_terminal_obj, multiterminal_obj_clear_secondary_terminal);
8080

81-
//| def schedule_secondary_terminal_read(socket: Any) -> Any:
81+
//| def schedule_secondary_terminal_read(socket: secondary_terminal) -> None:
8282
//| """In cases where the underlying OS is doing task scheduling, this notifies
8383
//| the OS when more data is available on the socket to read. This is useful
8484
//| as a callback for lwip sockets."""

0 commit comments

Comments
 (0)