From 8e62a6d6d7054043c19f89ee7fb53a4b0fb5a3b1 Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Mon, 29 Jun 2020 10:35:49 +0200 Subject: [PATCH] Apply suggestions from code review Typing suggestions by Jaime CURA-7473 Co-authored-by: Jaime van Kessel --- cura/API/Account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/API/Account.py b/cura/API/Account.py index 3ef95834d2..17a90f0055 100644 --- a/cura/API/Account.py +++ b/cura/API/Account.py @@ -146,7 +146,7 @@ class Account(QObject): if not self._update_timer.isActive(): self._update_timer.start() - def setUpdatePackagesAction(self, action: Callable): + def setUpdatePackagesAction(self, action: Callable) -> None: """ Set the callback which will be invoked when the user clicks the update packages button Should be invoked after your service sets the sync state to SYNCING and before setting the @@ -282,7 +282,7 @@ class Account(QObject): self._sync() @pyqtSlot() - def onUpdatePackagesClicked(self): + def onUpdatePackagesClicked(self) -> None: if self._update_packages_action is not None: self._update_packages_action()