Fix bunch of issues found by pylint

This commit is contained in:
Jaime van Kessel 2020-01-10 16:37:46 +01:00
parent bb52ba6848
commit e74f049142
No known key found for this signature in database
GPG key ID: 3710727397403C91
16 changed files with 50 additions and 44 deletions

View file

@ -148,7 +148,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
@pyqtProperty(QObject, notify = printersChanged)
def activePrinter(self) -> Optional["PrinterOutputModel"]:
if len(self._printers):
if self._printers:
return self._printers[0]
return None