Skip to content

Commit 992292c

Browse files
committed
Updates sources for latest black/mypy versions.
1 parent f544ea1 commit 992292c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

examples/samples_libtcodpy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,8 @@ def render_path(first, key, mouse):
930930
# if true, there is always a wall on north & west side of a room
931931
bsp_room_walls = True
932932
bsp_map = None
933+
934+
933935
# draw a vertical line
934936
def vline(m, x, y1, y2):
935937
if y1 > y2:

examples/samples_tcod.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ def on_draw(self) -> None:
230230

231231

232232
class LineDrawingSample(Sample):
233-
234233
FLAG_NAMES = [
235234
"BKGND_NONE",
236235
"BKGND_SET",

tcod/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ def blit(
782782
"""
783783
# The old syntax is easy to detect and correct.
784784
if hasattr(src_y, "console_c"):
785-
(src_x, src_y, width, height, dest, dest_x, dest_y,) = (
785+
(src_x, src_y, width, height, dest, dest_x, dest_y) = (
786786
dest, # type: ignore
787787
dest_x,
788788
dest_y,

tcod/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def dijkstra2d(
474474
Added `out` parameter. Now returns the output array.
475475
"""
476476
dist: NDArray[Any] = np.asarray(distance)
477-
if out is ...: # type: ignore
477+
if out is ...:
478478
out = dist
479479
warnings.warn(
480480
"No `out` parameter was given. "

0 commit comments

Comments
 (0)