mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
add legacy NoteType alias
https://github.com/johnpincock/SpecialFields/issues/28
This commit is contained in:
parent
bd24005e08
commit
009878f75d
1 changed files with 3 additions and 1 deletions
|
@ -33,11 +33,13 @@ NotetypeNameId = _pb.NotetypeNameId
|
||||||
NotetypeNameIdUseCount = _pb.NotetypeNameIdUseCount
|
NotetypeNameIdUseCount = _pb.NotetypeNameIdUseCount
|
||||||
|
|
||||||
|
|
||||||
# types
|
# legacy types
|
||||||
NotetypeDict = Dict[str, Any]
|
NotetypeDict = Dict[str, Any]
|
||||||
|
NoteType = NotetypeDict
|
||||||
FieldDict = Dict[str, Any]
|
FieldDict = Dict[str, Any]
|
||||||
TemplateDict = Dict[str, Union[str, int, None]]
|
TemplateDict = Dict[str, Union[str, int, None]]
|
||||||
NotetypeId = NewType("NotetypeId", int)
|
NotetypeId = NewType("NotetypeId", int)
|
||||||
|
sys.modules["anki.models"].NoteType = NotetypeDict # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class ModelsDictProxy:
|
class ModelsDictProxy:
|
||||||
|
|
Loading…
Reference in a new issue