From 62527f0b544f6c560978930bbde80d0230b52c5c Mon Sep 17 00:00:00 2001 From: ijgnd <40218852+ijgnd@users.noreply.github.com> Date: Tue, 4 Feb 2020 02:46:57 +0100 Subject: [PATCH] about.py - some type hints --- qt/aqt/about.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/aqt/about.py b/qt/aqt/about.py index b3aa7dee9..e6095ba60 100644 --- a/qt/aqt/about.py +++ b/qt/aqt/about.py @@ -7,6 +7,7 @@ import time import aqt.forms from anki.lang import _ from anki.utils import versionWithBuild +from aqt.addons import AddonManager, AddonMeta from aqt.qt import * from aqt.utils import supportText, tooltip @@ -33,7 +34,7 @@ def show(mw): # Copy debug info ###################################################################### - def addon_fmt(addmgr, a): + def addon_fmt(addmgr: AddonManager, a: AddonMeta) -> str: if a.installed_at: t = time.strftime("%Y-%m-%dT%H:%M", time.localtime(a.installed_at)) else: