summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authordherrada <dylan.herrada@adafruit.com>2020-07-03 11:31:57 -0400
committerdherrada <dylan.herrada@adafruit.com>2020-07-03 11:31:57 -0400
commitf8229372bd06eea08e97be5241352d521fa8972f (patch)
treee385f17ccb1a6941e886caaa8239aea0f07eee11 /shared-bindings
parent6e4c76a926b726d974598c0298b8580cd92c2f66 (diff)
Added type hints to terminalio
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/terminalio/Terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/terminalio/Terminal.c b/shared-bindings/terminalio/Terminal.c
index 5c045fdee..43310dd2a 100644
--- a/shared-bindings/terminalio/Terminal.c
+++ b/shared-bindings/terminalio/Terminal.c
@@ -40,7 +40,7 @@
//| class Terminal:
//| """Display a character stream with a TileGrid"""
//|
-//| def __init__(self, tilegrid: Any, font: Any):
+//| def __init__(self, tilegrid: bitmap, font: fontio.BuiltinFont):
//| """Terminal manages tile indices and cursor position based on VT100 commands. The font should be
//| a `fontio.BuiltinFont` and the TileGrid's bitmap should match the font's bitmap."""
//| ...
@@ -72,7 +72,7 @@ STATIC mp_obj_t terminalio_terminal_make_new(const mp_obj_type_t *type, size_t n
// These are standard stream methods. Code is in py/stream.c.
//
-//| def write(self, buf: Any) -> Any:
+//| def write(self, buf: ReadableBuffer) -> Optional[int]:
//| """Write the buffer of bytes to the bus.
//|
//| :return: the number of bytes written