Skip to content

Commit

Permalink
fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
introkun committed Mar 26, 2024
1 parent f009e04 commit 0db1670
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,6 @@ def on_gdrive(self):
@staticmethod
def closeEvent(event):
del event
# pylint: disable=fixme
# TODO: implement a graceful shutdown of other threads
os._exit(0) # pylint: disable=protected-access
1 change: 0 additions & 1 deletion gui/table_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def data(self, index, role=Qt.ItemDataRole.DisplayRole):
return f"{row[Column(j)]}"
return QtCore.QVariant()

# pylint: disable=no-self-use
def flags(self, index):
del index
return Qt.ItemFlag.ItemIsEnabled
Expand Down
4 changes: 2 additions & 2 deletions nut/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import json
import os
import time
import collections
from collections.abc import Mapping
from binascii import unhexlify as uhx
from nut import Print
from nut.config_impl.download import Download
from collections.abc import Mapping


threads = 1
jsonOutput = False
Expand Down
1 change: 1 addition & 0 deletions nut/Hex.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ def dump(data, size=16):
print('|', asciiFormat.format(ascii_), '|')

index += size
# pylint: disable=consider-using-min-builtin
if bytesRead - index < size:
size = bytesRead - index

0 comments on commit 0db1670

Please sign in to comment.