diff --git a/plug.py b/plug.py index 50a7a716..480874e9 100644 --- a/plug.py +++ b/plug.py @@ -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): diff --git a/plugins/edsm.py b/plugins/edsm.py index fa135049..9f2602b6 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -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: