ARG002/ARG005: fix
This commit is contained in:
@@ -70,5 +70,6 @@ class EmptySplash(Gtk.Box):
|
||||
"""Callback for the join button
|
||||
Extracts the text from the entry and calls the on_join callback
|
||||
"""
|
||||
del button # Unused but kept for API compatibility
|
||||
log.info(f"Splash screen: Joining {entry.get_text()}")
|
||||
self.on_join(entry.get_text())
|
||||
|
||||
@@ -90,7 +90,8 @@ LONG_PATH_PREFIX = "\\\\?\\"
|
||||
# from pynicotine.gtkgui.widgets.theme import ICON_THEME
|
||||
class IconTheme:
|
||||
def lookup_icon(self, icon_name: str, **kwargs: Any) -> None:
|
||||
return None
|
||||
del icon_name
|
||||
del kwargs
|
||||
|
||||
|
||||
ICON_THEME = IconTheme()
|
||||
@@ -177,7 +178,9 @@ class BaseImplementation:
|
||||
self.application = application
|
||||
self.menu_items: dict[int, Any] = {}
|
||||
self.menu_item_id: int = 1
|
||||
self.activate_callback: Callable = lambda a, b: self.update_window_visibility
|
||||
self.activate_callback: Callable = (
|
||||
lambda _a, _b: self.update_window_visibility()
|
||||
)
|
||||
self.is_visible: bool = True
|
||||
|
||||
self.create_menu()
|
||||
@@ -275,9 +278,11 @@ class BaseImplementation:
|
||||
pass
|
||||
|
||||
def set_download_status(self, status: str) -> None:
|
||||
del status # Unused but kept for API compatibility
|
||||
self.update_menu()
|
||||
|
||||
def set_upload_status(self, status) -> None:
|
||||
del status # Unused but kept for API compatibility
|
||||
self.update_menu()
|
||||
|
||||
def show_notification(self, title, message) -> None:
|
||||
|
||||
@@ -49,6 +49,7 @@ class VMObject(GObject.Object):
|
||||
data: HistoryEntry,
|
||||
build_log_cb: Callable[[Gio.File], None],
|
||||
) -> None:
|
||||
del icon # Unused but kept for API compatibility
|
||||
super().__init__()
|
||||
|
||||
# Store the data from the history entry
|
||||
@@ -138,6 +139,7 @@ class VMObject(GObject.Object):
|
||||
)
|
||||
|
||||
def _on_switch_toggle(self, switch: Gtk.Switch, user_state: bool) -> None:
|
||||
del user_state # Unused but kept for API compatibility
|
||||
if switch.get_active():
|
||||
switch.set_state(False)
|
||||
switch.set_sensitive(False)
|
||||
@@ -265,6 +267,7 @@ class VMObject(GObject.Object):
|
||||
other_file: Gio.File,
|
||||
event_type: Gio.FileMonitorEvent,
|
||||
) -> None:
|
||||
del monitor, other_file # Unused but kept for API compatibility
|
||||
if event_type == Gio.FileMonitorEvent.CHANGES_DONE_HINT:
|
||||
# File was changed and the changes were written to disk
|
||||
# wire up the callback for setting the logs
|
||||
|
||||
Reference in New Issue
Block a user