mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix type hints and remove obsolete argument
This commit is contained in:
parent
54253e2108
commit
d9e56e22f9
1 changed files with 3 additions and 3 deletions
|
@ -345,7 +345,7 @@ and have been disabled: %(found)s"
|
|||
######################################################################
|
||||
|
||||
def _installationErrorReport(
|
||||
self, result: AddonInstallationResult, base: str, mode="download"
|
||||
self, result: AddonInstallationResult, base: str, mode: str = "download"
|
||||
) -> List[str]:
|
||||
|
||||
messages = {
|
||||
|
@ -370,7 +370,7 @@ and have been disabled: %(found)s"
|
|||
return [template % dict(base=name, id=name, error=msg)]
|
||||
|
||||
def _installationSuccessReport(
|
||||
self, result: AddonInstallationResult, base: str, mode="download"
|
||||
self, result: AddonInstallationResult, base: str, mode: str = "download"
|
||||
) -> List[str]:
|
||||
|
||||
if mode == "download": # preserve old format strings for i18n
|
||||
|
@ -666,7 +666,7 @@ class AddonsDialog(QDialog):
|
|||
def onGetAddons(self):
|
||||
GetAddons(self)
|
||||
|
||||
def onInstallFiles(self, paths: Optional[List[str]] = None, external: bool = False):
|
||||
def onInstallFiles(self, paths: Optional[List[str]] = None):
|
||||
if not paths:
|
||||
key = _("Packaged Anki Add-on") + " (*{})".format(self.mgr.ext)
|
||||
paths = getFile(
|
||||
|
|
Loading…
Reference in a new issue