From 408b649db7a36fd37f1bed9cbdf20bc8bb9a2c7c Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 3 Jan 2022 10:22:36 +0100 Subject: [PATCH] Add typing to tabmanager CURA-8588 --- plugins/Marketplace/Marketplace.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Marketplace/Marketplace.py b/plugins/Marketplace/Marketplace.py index ea1f94be1d..dee2e0f4ac 100644 --- a/plugins/Marketplace/Marketplace.py +++ b/plugins/Marketplace/Marketplace.py @@ -24,12 +24,12 @@ class Marketplace(Extension): class TabManager(QObject): def __init__(self) -> None: super().__init__(parent=CuraApplication.getInstance()) - self._tab_shown = 0 + self._tab_shown: int = 0 - def getTabShown(self): + def getTabShown(self) -> int: return self._tab_shown - def setTabShown(self, tab_shown): + def setTabShown(self, tab_shown: int) -> None: if tab_shown != self._tab_shown: self._tab_shown = tab_shown self.tabShownChanged.emit()