Add type annotation for model

This commit is contained in:
Michal Pokorný (Rai) 2019-12-27 16:45:33 +01:00
parent 7abd58382f
commit 3357ecfed3

View File

@ -22,7 +22,7 @@ class Note:
def __init__( def __init__(
self, self,
col: "anki.storage._Collection", col: "anki.storage._Collection",
model: Optional[Any] = None, model: Optional[NoteType] = None,
id: Optional[int] = None, id: Optional[int] = None,
) -> None: ) -> None:
assert not (model and id) assert not (model and id)