1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

#2047 Suppress Inaccurate MyPy

This commit is contained in:
David Sangrey 2023-08-03 17:31:46 -04:00
parent dc52e7684f
commit db73b9d775
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC
2 changed files with 4 additions and 4 deletions

View File

@ -58,8 +58,8 @@ class Plugin(object):
try:
filename = 'plugin_'
filename += name.encode(encoding='ascii', errors='replace').decode('utf-8').replace('.', '_')
spec = importlib.util.spec_from_file_location(filename, loadfile)
module = importlib.util.module_from_spec(spec)
spec = importlib.util.spec_from_file_location(filename, loadfile) # type: ignore
module = importlib.util.module_from_spec(spec) # type: ignore
spec.loader.exec_module(module)
if getattr(module, 'plugin_start3', None):

View File

@ -279,9 +279,9 @@ def plugin_stop() -> None:
def toggle_password_visibility():
"""Toggle if the API Key is visible or not."""
if show_password_var.get():
this.apikey.config(show="")
this.apikey.config(show="") # type: ignore
else:
this.apikey.config(show="*")
this.apikey.config(show="*") # type: ignore
def plugin_prefs(parent: ttk.Notebook, cmdr: str | None, is_beta: bool) -> tk.Frame: