Monkeytype pylib/anki/decks.py
This commit is contained in:
parent
dc1542c6b5
commit
948c09e84b
@ -446,7 +446,7 @@ class DeckManager:
|
|||||||
return deck["name"]
|
return deck["name"]
|
||||||
return _("[no deck]")
|
return _("[no deck]")
|
||||||
|
|
||||||
def nameOrNone(self, did) -> Any:
|
def nameOrNone(self, did: int) -> Any:
|
||||||
deck = self.get(did, default=False)
|
deck = self.get(did, default=False)
|
||||||
if deck:
|
if deck:
|
||||||
return deck["name"]
|
return deck["name"]
|
||||||
@ -530,7 +530,7 @@ class DeckManager:
|
|||||||
self,
|
self,
|
||||||
force_default: bool = True,
|
force_default: bool = True,
|
||||||
assume_no_child: bool = False,
|
assume_no_child: bool = False,
|
||||||
default_deck=None,
|
default_deck: Optional[Dict[str, Any]] = None,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Whether the default deck should appear in main window, browser side list, filter, deck selection...
|
"""Whether the default deck should appear in main window, browser side list, filter, deck selection...
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user