Skip to content

Commit 781b2d3

Browse files
committed
Corrected Iterable type annotations
1 parent d3fbbca commit 781b2d3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

adafruit_bitmap_font/bdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def get_bounding_box(self) -> Tuple[int, int, int, int]:
120120
"""Return the maximum glyph size as a 4-tuple of: width, height, x_offset, y_offset"""
121121
return self._boundingbox
122122

123-
def load_glyphs(self, code_points: Union[int, str, Iterable]) -> None:
123+
def load_glyphs(self, code_points: Union[int, str, Iterable[int]]) -> None:
124124
# pylint: disable=too-many-statements,too-many-branches,too-many-nested-blocks,too-many-locals
125125
metadata = True
126126
character = False

adafruit_bitmap_font/glyph_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class GlyphCache:
4040
def __init__(self) -> None:
4141
self._glyphs = {}
4242

43-
def load_glyphs(self, code_points: Union[int, str, Iterable]) -> None:
43+
def load_glyphs(self, code_points: Union[int, str, Iterable[int]]) -> None:
4444
"""Loads displayio.Glyph objects into the GlyphCache from the font."""
4545

4646
def get_glyph(self, code_point: int) -> Glyph:

adafruit_bitmap_font/pcf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def _read_properties(self) -> Iterator[Tuple[bytes, Union[bytes, int]]]:
297297
else:
298298
yield (string_map[name_offset], value)
299299

300-
def load_glyphs(self, code_points: Union[int, str, Iterable]) -> None:
300+
def load_glyphs(self, code_points: Union[int, str, Iterable[int]]) -> None:
301301
# pylint: disable=too-many-statements,too-many-branches,too-many-nested-blocks,too-many-locals
302302
if isinstance(code_points, int):
303303
code_points = (code_points,)

0 commit comments

Comments
 (0)