Skip to content

Commit b3ff5fb

Browse files
committed
Update type hints.
1 parent 514cc49 commit b3ff5fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/samples_tcod.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,8 @@ def on_draw(self) -> None:
621621
light[~visible] = 0 # Set non-visible areas to darkness.
622622

623623
# Setup background colors for floating point math.
624-
light_bg = self.light_map_bg.astype(np.float16)
625-
dark_bg = self.dark_map_bg.astype(np.float16)
624+
light_bg: NDArray[np.float16] = self.light_map_bg.astype(np.float16)
625+
dark_bg: NDArray[np.float16] = self.dark_map_bg.astype(np.float16)
626626

627627
# Linear interpolation between colors.
628628
sample_console.tiles_rgb["bg"] = dark_bg + (light_bg - dark_bg) * light[..., np.newaxis]

tcod/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import cffi # type: ignore
1111

12-
from tcod import __path__ # type: ignore
12+
from tcod import __path__
1313

1414
__sdl_version__ = ""
1515

0 commit comments

Comments
 (0)