diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 95a9d3ef8..00967fcf3 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -40,7 +40,7 @@ Thomas Brownback Andrew Gaul kenden Nickolay Yudin - +neitrinoweb ******************** The text of the 3 clause BSD license follows: diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index a2442b7aa..48c6e0661 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -4,7 +4,7 @@ import copy import json import re -from typing import List, Optional +from typing import Any, Dict, List, Optional import aqt from anki.cards import Card @@ -87,7 +87,7 @@ class CardLayout(QDialog): self.ignore_change_signals = False self.update_current_ordinal_and_redraw(self.ord) - def update_current_ordinal_and_redraw(self, idx): + def update_current_ordinal_and_redraw(self, idx: int) -> None: if self.ignore_change_signals: return self.ord = idx @@ -136,7 +136,7 @@ class CardLayout(QDialog): self._fieldsOnTemplate(tmpl["afmt"]), ) - def _fieldsOnTemplate(self, fmt): + def _fieldsOnTemplate(self, fmt: str) -> str: matches = re.findall("{{[^#/}]+?}}", fmt) chars_allowed = 30 field_names: List[str] = []