From deada6f68e7edeb65a224fe895922ba203265ede Mon Sep 17 00:00:00 2001 From: Kyle Benesch <4b796c65+github@gmail.com> Date: Fri, 10 Nov 2023 14:36:49 -0800 Subject: [PATCH] Remove unused type ignores New Mypy version --- tcod/libtcodpy.py | 2 +- tcod/sdl/render.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tcod/libtcodpy.py b/tcod/libtcodpy.py index d3db588c..e6649497 100644 --- a/tcod/libtcodpy.py +++ b/tcod/libtcodpy.py @@ -2920,7 +2920,7 @@ def heightmap_get_normal(hm: NDArray[np.float32], x: float, y: float, waterLevel """ cn = ffi.new("float[3]") lib.TCOD_heightmap_get_normal(_heightmap_cdata(hm), x, y, cn, waterLevel) - return tuple(cn) # type: ignore + return tuple(cn) @deprecate("This function is deprecated, see documentation.") diff --git a/tcod/sdl/render.py b/tcod/sdl/render.py index cb365215..b1dafe8c 100644 --- a/tcod/sdl/render.py +++ b/tcod/sdl/render.py @@ -360,7 +360,7 @@ def draw_color(self) -> tuple[int, int, int, int]: """ rgba = ffi.new("uint8_t[4]") _check(lib.SDL_GetRenderDrawColor(self.p, rgba, rgba + 1, rgba + 2, rgba + 3)) - return tuple(rgba) # type: ignore[return-value] + return tuple(rgba) @draw_color.setter def draw_color(self, rgba: tuple[int, int, int, int]) -> None: