Skip to content

Commit eaabf2d

Browse files
committed
fix str type and add Optionals for some arguments.
1 parent 0815e78 commit eaabf2d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

adafruit_imageload/tilegrid_inflator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ def inflate_tilegrid(
3232
inflate a TileGrid of ``target_size`` in tiles from a 3x3 spritesheet by duplicating
3333
the center rows and columns.
3434
35-
:param string bmp_path: filepath to the 3x3 spritesheet bitmap file
36-
:param tuple target_size: desired size in tiles (target_width, target_height)
35+
:param Optional[str] bmp_path: filepath to the 3x3 spritesheet bitmap file
36+
:param Optional[tuple] target_size: desired size in tiles (target_width, target_height)
3737
:param Optional[tuple] tile_size: size of the tiles in the 3x3 spritesheet. If
3838
None is used it will equally divide the width and height of the Bitmap by 3.
39-
:param Union[tuple, int] transparent_index: a single index within the palette to
39+
:param Optional[Union[tuple, int]] transparent_index: a single index within the palette to
4040
make transparent, or a tuple of multiple indexes to make transparent
41-
:param OnDiskBitmap bmp_obj: Already loaded 3x3 spritesheet in an OnDiskBitmap
42-
:param Palette bmp_palette: Already loaded spritesheet Palette
41+
:param Optional[OnDiskBitmap] bmp_obj: Already loaded 3x3 spritesheet in an OnDiskBitmap
42+
:param Optional[Palette] bmp_palette: Already loaded spritesheet Palette
4343
"""
4444

4545
# pylint: disable=too-many-arguments, too-many-locals, too-many-branches

0 commit comments

Comments
 (0)