Turn on check_untyped_defs for aqt.addons

This commit is contained in:
Matt Krump 2020-07-30 17:54:05 -06:00
parent a56690bc08
commit 7d8f856060
2 changed files with 4 additions and 2 deletions

View File

@ -179,7 +179,7 @@ class AddonManager:
sys.path.insert(0, self.addonsFolder())
# in new code, you may want all_addon_meta() instead
def allAddons(self):
def allAddons(self) -> List[str]:
l = []
for d in os.listdir(self.addonsFolder()):
path = self.addonsFolder(d)
@ -188,7 +188,7 @@ class AddonManager:
l.append(d)
l.sort()
if os.getenv("ANKIREVADDONS", ""):
l = reversed(l)
l = list(reversed(l))
return l
def all_addon_meta(self) -> Iterable[AddonMeta]:

View File

@ -90,3 +90,5 @@ check_untyped_defs=true
check_untyped_defs=true
[mypy-aqt.webview]
check_untyped_defs=true
[mypy-aqt.addons]
check_untyped_defs=true