Skip to content

Commit 655e4f9

Browse files
committed
Remove outdated type ignores.
Were fixed upstream by Numpy.
1 parent b4112b5 commit 655e4f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/samples_tcod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def interpolate_corner_colors(self) -> None:
140140
def darken_background_characters(self) -> None:
141141
# darken background characters
142142
sample_console.fg[:] = sample_console.bg[:]
143-
sample_console.fg[:] //= 2 # type: ignore[arg-type] # https://github.com/numpy/numpy/issues/21592
143+
sample_console.fg[:] //= 2
144144

145145
def randomize_sample_conole(self) -> None:
146146
# randomize sample console characters

tcod/tileset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def procedural_block_elements(*, tileset: Tileset) -> None:
428428
(0x259F, 0b0111), # "▟" Quadrant upper right and lower left and lower right.
429429
):
430430
alpha: NDArray[np.uint8] = np.asarray((quadrants & quad_mask) != 0, dtype=np.uint8)
431-
alpha *= 255 # type: ignore[arg-type] # https://github.com/numpy/numpy/issues/21592
431+
alpha *= 255
432432
tileset.set_tile(codepoint, alpha)
433433

434434
for codepoint, axis, fraction, negative in (

0 commit comments

Comments
 (0)