Fix mypy and black checks

This commit is contained in:
Glutanimate 2020-01-03 18:23:28 +01:00
parent 57c48d7c85
commit 1b236acb3d
3 changed files with 7 additions and 6 deletions

View file

@ -47,8 +47,8 @@ class AddonInstallationResult(NamedTuple):
class AddonManager:
ext = ".ankiaddon"
_manifest_schema = {
ext: str = ".ankiaddon"
_manifest_schema: dict = {
"type": "object",
"properties": {
"package": {"type": "string", "meta": False},

View file

@ -1027,6 +1027,7 @@ QTreeWidget {
def installAddon(self, path):
from aqt.addons import installAddonPackages
installAddonPackages(self.addonManager, [path], external=True, parent=self)
# Cramming

View file

@ -57,7 +57,7 @@ def showInfo(
type="info",
title="Anki",
textFormat=None,
customBtns=None
customBtns=None,
):
"Show a small info window with an OK button."
if parent is False: