Skip to content

Commit f822937

Browse files
committed
Added type hints to terminalio
1 parent 6e4c76a commit f822937

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shared-bindings/terminalio/Terminal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
//| class Terminal:
4141
//| """Display a character stream with a TileGrid"""
4242
//|
43-
//| def __init__(self, tilegrid: Any, font: Any):
43+
//| def __init__(self, tilegrid: bitmap, font: fontio.BuiltinFont):
4444
//| """Terminal manages tile indices and cursor position based on VT100 commands. The font should be
4545
//| a `fontio.BuiltinFont` and the TileGrid's bitmap should match the font's bitmap."""
4646
//| ...
@@ -72,7 +72,7 @@ STATIC mp_obj_t terminalio_terminal_make_new(const mp_obj_type_t *type, size_t n
7272

7373
// These are standard stream methods. Code is in py/stream.c.
7474
//
75-
//| def write(self, buf: Any) -> Any:
75+
//| def write(self, buf: ReadableBuffer) -> Optional[int]:
7676
//| """Write the buffer of bytes to the bus.
7777
//|
7878
//| :return: the number of bytes written

0 commit comments

Comments
 (0)