We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 514cc49 commit b3ff5fbCopy full SHA for b3ff5fb
2 files changed
examples/samples_tcod.py
@@ -621,8 +621,8 @@ def on_draw(self) -> None:
621
light[~visible] = 0 # Set non-visible areas to darkness.
622
623
# 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)
+ light_bg: NDArray[np.float16] = self.light_map_bg.astype(np.float16)
+ dark_bg: NDArray[np.float16] = self.dark_map_bg.astype(np.float16)
626
627
# Linear interpolation between colors.
628
sample_console.tiles_rgb["bg"] = dark_bg + (light_bg - dark_bg) * light[..., np.newaxis]
tcod/loader.py
@@ -9,7 +9,7 @@
9
10
import cffi # type: ignore
11
12
-from tcod import __path__ # type: ignore
+from tcod import __path__
13
14
__sdl_version__ = ""
15
0 commit comments