Turn on check_untyped_defs for aqt.addons
This commit is contained in:
parent
a56690bc08
commit
7d8f856060
@ -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]:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user