From c3f0618be0ef0c44615c347ecdbaadb20ca77e57 Mon Sep 17 00:00:00 2001 From: elegantiron <128913032+elegantiron@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:31:47 -0500 Subject: [PATCH] Update application.py fixes type hinting to match the returned properties fixes #2525 --- arcade/application.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arcade/application.py b/arcade/application.py index 275e44d437..e9b2b8af2e 100644 --- a/arcade/application.py +++ b/arcade/application.py @@ -1543,21 +1543,21 @@ def on_mouse_leave(self, x: int, y: int) -> bool | None: pass @property - def size(self) -> tuple[float, float]: + def size(self) -> tuple[int, int]: """ An alias for `arcade.Window.size` """ return self.window.size @property - def width(self) -> float: + def width(self) -> int: """ An alias for `arcade.Window.width` """ return self.window.width @property - def height(self) -> float: + def height(self) -> int: """ An alias for `arcade.Window.height` """