mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
Add type annotation for model
This commit is contained in:
parent
7abd58382f
commit
3357ecfed3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue