Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
lint: fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jan 4, 2024
1 parent a5d61c7 commit 5d20831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rplugin/python3/gkeep/views/notelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
)
from gkeepapi.node import ColorValue, Note
from pynvim.api import Buffer, Nvim, Window
from typing_extensions import assert_never

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -277,8 +278,7 @@ def _new_note(self, note_type: NoteFormat, title: str) -> None:
elif type == NoteEnum.LIST:
note = self._api.createList(title, [("", False)])
else:
util.echoerr(self._vim, f"Unknown note type '{type}'")
return
assert_never(type)
if not self.query.pinned(note.pinned):
note.pinned = not note.pinned
if self.query.labels:
Expand Down

0 comments on commit 5d20831

Please sign in to comment.