Skip to content

Commit

Permalink
Remove unused type ignores
Browse files Browse the repository at this point in the history
New Mypy version
  • Loading branch information
HexDecimal committed Nov 10, 2023
1 parent 73c941e commit 04664d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tcod/libtcodpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
2 changes: 1 addition & 1 deletion tcod/sdl/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 04664d3

Please sign in to comment.