Skip to content

Commit

Permalink
Annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbende committed Dec 9, 2023
1 parent 969515a commit eed3e55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cozy/view_model/search_view_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ def search(
sorted(readers),
)

def close(self):
def close(self) -> None:
self._notify("close")

def jump_to_book(self, book: Book):
def jump_to_book(self, book: Book) -> None:
self.emit_event(OpenView.BOOK, book)
self.close()

def jump_to_author(self, author: str):
def jump_to_author(self, author: str) -> None:
self.emit_event(OpenView.AUTHOR, author)
self.close()

def jump_to_reader(self, reader: str):
def jump_to_reader(self, reader: str) -> None:
self.emit_event(OpenView.READER, reader)
self.close()

0 comments on commit eed3e55

Please sign in to comment.