From 4863431c9376e129a14dfe30025a951ce23c42cf Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 24 Dec 2019 14:06:31 +1000 Subject: [PATCH] add type hint to models --- anki/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anki/models.py b/anki/models.py index 8a679057d..89f091d54 100644 --- a/anki/models.py +++ b/anki/models.py @@ -8,6 +8,7 @@ import re import time from typing import Any, Callable, Dict, List, Optional, Tuple, Union +import anki # pylint: disable=unused-import from anki.consts import * from anki.hooks import runHook from anki.lang import _ @@ -80,7 +81,7 @@ class ModelManager: # Saving/loading registry ############################################################# - def __init__(self, col) -> None: + def __init__(self, col: "anki.storage._Collection") -> None: self.col = col self.models = {} self.changed = False