about.py - some type hints

This commit is contained in:
ijgnd 2020-02-04 02:46:57 +01:00 committed by ijgnd
parent 6e1996f701
commit 62527f0b54

View file

@ -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: