Skip to content

Commit

Permalink
Turns out that *junk was not even necessary anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbende committed Dec 22, 2023
1 parent e8fb0a7 commit 9f87b45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cozy/ui/widgets/storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from cozy.view_model.storages_view_model import StoragesViewModel


def ask_storage_location(callback: Callable[[str], None], *junk, initial_folder: str | None = None):
def ask_storage_location(callback: Callable[[str], None], initial_folder: str | None = None):
location_chooser = Gtk.FileDialog(title=_("Set Audiobooks Directory"))

if initial_folder:
Expand Down Expand Up @@ -151,7 +151,7 @@ def _mark_storage_location_external(
value = action.get_property(value.name)
self._view_model.set_external(self._view_model.selected_storage, value)

def _on_new_storage_clicked(self, *junk) -> None:
def _on_new_storage_clicked(self, *_) -> None:
ask_storage_location(self._view_model.add_storage_location)

def _on_storage_location_changed(self, widget: StorageRow, new_location: str) -> None:
Expand Down

0 comments on commit 9f87b45

Please sign in to comment.