mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
about.py - some type hints
This commit is contained in:
parent
6e1996f701
commit
62527f0b54
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ import time
|
||||||
import aqt.forms
|
import aqt.forms
|
||||||
from anki.lang import _
|
from anki.lang import _
|
||||||
from anki.utils import versionWithBuild
|
from anki.utils import versionWithBuild
|
||||||
|
from aqt.addons import AddonManager, AddonMeta
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
from aqt.utils import supportText, tooltip
|
from aqt.utils import supportText, tooltip
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@ def show(mw):
|
||||||
|
|
||||||
# Copy debug info
|
# Copy debug info
|
||||||
######################################################################
|
######################################################################
|
||||||
def addon_fmt(addmgr, a):
|
def addon_fmt(addmgr: AddonManager, a: AddonMeta) -> str:
|
||||||
if a.installed_at:
|
if a.installed_at:
|
||||||
t = time.strftime("%Y-%m-%dT%H:%M", time.localtime(a.installed_at))
|
t = time.strftime("%Y-%m-%dT%H:%M", time.localtime(a.installed_at))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue