Add some typings

Contributes to CL-1153
This commit is contained in:
Ian Paschal 2018-12-03 12:15:38 +01:00
parent 665e2d3060
commit 3d80e28174

View file

@ -118,11 +118,11 @@ class PrintJobOutputModel(QObject):
self.nameChanged.emit()
@pyqtProperty(int, notify = timeTotalChanged)
def timeTotal(self):
def timeTotal(self) -> int:
return self._time_total
@pyqtProperty(int, notify = timeElapsedChanged)
def timeElapsed(self):
def timeElapsed(self) -> int:
return self._time_elapsed
@pyqtProperty(int, notify = timeElapsedChanged)
@ -138,7 +138,7 @@ class PrintJobOutputModel(QObject):
return result
@pyqtProperty(str, notify=stateChanged)
def state(self):
def state(self) -> str:
return self._state
@pyqtProperty(bool, notify=stateChanged)