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:
parent
dc52e7684f
commit
db73b9d775
4
plug.py
4
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):
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user