Skip to content

Commit

Permalink
DeleteSourceDialog mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Nov 15, 2024
1 parent e96eed1 commit be83b09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/securedrop_client/gui/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__(
source: Source,
parent: QMenu,
controller: Controller,
confirmation_dialog: Callable[[list[Source]], QDialog],
confirmation_dialog: Callable[[list[Source], int], QDialog],
) -> None:
self.source = source
self.controller = controller
Expand Down
4 changes: 2 additions & 2 deletions client/securedrop_client/gui/source/delete/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ def update_continue_button(self, initial: bool = False) -> None:
self.continue_button.setText(self.continue_text)
self.continue_button.setEnabled(True)

def make_body_text(self, sources: list[Source], source_total) -> str:
def make_body_text(self, sources: list[Source], source_total: int) -> str:
if len(sources) == source_total:
all_sources_text = ("<p><b>", _("Notice: All sources have been selected!"), "</p></b>")
else:
all_sources_text = ()
all_sources_text = ("", "", "")

message_text = (
"<p>",
Expand Down

0 comments on commit be83b09

Please sign in to comment.