Skip to content

Commit 04664d3

Browse files
committed
Remove unused type ignores
New Mypy version
1 parent 73c941e commit 04664d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tcod/libtcodpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2920,7 +2920,7 @@ def heightmap_get_normal(hm: NDArray[np.float32], x: float, y: float, waterLevel
29202920
"""
29212921
cn = ffi.new("float[3]")
29222922
lib.TCOD_heightmap_get_normal(_heightmap_cdata(hm), x, y, cn, waterLevel)
2923-
return tuple(cn) # type: ignore
2923+
return tuple(cn)
29242924

29252925

29262926
@deprecate("This function is deprecated, see documentation.")

tcod/sdl/render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def draw_color(self) -> tuple[int, int, int, int]:
360360
"""
361361
rgba = ffi.new("uint8_t[4]")
362362
_check(lib.SDL_GetRenderDrawColor(self.p, rgba, rgba + 1, rgba + 2, rgba + 3))
363-
return tuple(rgba) # type: ignore[return-value]
363+
return tuple(rgba)
364364

365365
@draw_color.setter
366366
def draw_color(self, rgba: tuple[int, int, int, int]) -> None:

0 commit comments

Comments
 (0)