Add type annotation for model
This commit is contained in:
parent
7abd58382f
commit
3357ecfed3
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user