Skip to content

Commit 48ea227

Browse files
committed
Added type hints to fontio
1 parent 783cc4d commit 48ea227

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

shared-bindings/fontio/BuiltinFont.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
//| ...
4747
//|
4848

49-
//| bitmap: Any = ...
49+
//| bitmap: bitmap = ...
5050
//| """Bitmap containing all font glyphs starting with ASCII and followed by unicode. Use
5151
//| `get_glyph` in most cases. This is useful for use with `displayio.TileGrid` and
5252
//| `terminalio.Terminal`."""
@@ -64,7 +64,7 @@ const mp_obj_property_t fontio_builtinfont_bitmap_obj = {
6464
(mp_obj_t)&mp_const_none_obj},
6565
};
6666

67-
//| def get_bounding_box(self) -> Any:
67+
//| def get_bounding_box(self) -> Tuple[int, int]:
6868
//| """Returns the maximum bounds of all glyphs in the font in a tuple of two values: width, height."""
6969
//| ...
7070
//|
@@ -76,7 +76,7 @@ STATIC mp_obj_t fontio_builtinfont_obj_get_bounding_box(mp_obj_t self_in) {
7676
MP_DEFINE_CONST_FUN_OBJ_1(fontio_builtinfont_get_bounding_box_obj, fontio_builtinfont_obj_get_bounding_box);
7777

7878

79-
//| def get_glyph(self, codepoint: Any) -> Any:
79+
//| def get_glyph(self, codepoint: int) -> fontio.Glyph:
8080
//| """Returns a `fontio.Glyph` for the given codepoint or None if no glyph is available."""
8181
//| ...
8282
//|

0 commit comments

Comments
 (0)