Skip to content

Commit 24fda21

Browse files
committed
Type fix after mypy upgrade
1 parent fa15390 commit 24fda21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arcade/examples/sections_demo_3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def draw_button(self):
8787
def on_resize(self, width: int, height: int):
8888
"""set position on screen resize"""
8989
self.left = width // 3
90-
self.bottom = (height // 2) - self.height // 2
90+
self.bottom = (height // 2) - self.height // 2 # type: ignore
9191
pos = self.left + self.width / 2, self.bottom + self.height / 2
9292
self.button.position = pos
9393

@@ -203,7 +203,7 @@ def on_mouse_press(self, x: float, y: float, button: int, modifiers: int):
203203

204204
def on_resize(self, width: int, height: int):
205205
# stick to the right
206-
self.left = width - self.width
206+
self.left = width - self.width # type: ignore
207207
self.height = height - self.view.info_bar.height
208208
self.button_stop.position = self.left + self.width / 2, self.top - 80
209209

0 commit comments

Comments
 (0)