From 8c4ec804e7c09dfbd78ea10ca2680fff7e6c7a87 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Mon, 24 Apr 2017 13:12:21 +0200 Subject: [PATCH] Add type hinting to _onContextMenuRequested --- cura/CuraApplication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 0ab3c1c1cf..5f71495f77 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -1334,7 +1334,7 @@ class CuraApplication(QtApplication): Logger.log("e", "Could not check file %s: %s", file_url, e) return False - def _onContextMenuRequested(self, x, y): + def _onContextMenuRequested(self, x: float, y: float) -> None: # Ensure we select the object if we request a context menu over an object without having a selection. if not Selection.hasSelection(): node = self.getController().getScene().findObject(self.getRenderer().getRenderPass("selection").getIdAtPosition(x, y))