#2047 Suppress Inaccurate MyPy

This commit is contained in:
David Sangrey committed 2023-08-03 17:33:23 -04:00
1 parent dc52e7684f
commit db73b9d775
2 files changed
+4 -4

No files matched your search

+2 -2
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):
+2 -2
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: