From 1bfb461f32ada6682979a00932830d04d43dfec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Thu, 26 Dec 2024 19:18:26 -0500 Subject: [PATCH] gui.wxpython.nviz.wxnviz: Extra typing changes --- gui/wxpython/nviz/wxnviz.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gui/wxpython/nviz/wxnviz.py b/gui/wxpython/nviz/wxnviz.py index 4965a2fc171..3d646019803 100644 --- a/gui/wxpython/nviz/wxnviz.py +++ b/gui/wxpython/nviz/wxnviz.py @@ -556,7 +556,17 @@ def SetBgColor(self, color_str: str) -> None: """ Nviz_set_bgcolor(self.data, Nviz_color_from_str(color_str)) - def SetLight(self, x, y, z, color, bright, ambient, w=0, lid=1) -> None: + def SetLight( + self, + x: float, + y: float, + z: float, + color, + bright: float, + ambient: float, + w: float = 0, + lid: int = 1, + ) -> None: """Change lighting settings :param x,y,z: position @@ -2754,7 +2764,7 @@ def Draw(self) -> None: self.coords[0], self.coords[1], self.width, self.height, self.textureId ) - def HitTest(self, x: int, y: int, radius) -> bool: + def HitTest(self, x: int, y: int, radius: int) -> bool: copy = Rect(self.coords[0], self.coords[1], self.orig_width, self.orig_height) copy.Inflate(radius, radius) return copy.ContainsXY(x, y)