mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 08:40:34 +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:
|
try:
|
||||||
filename = 'plugin_'
|
filename = 'plugin_'
|
||||||
filename += name.encode(encoding='ascii', errors='replace').decode('utf-8').replace('.', '_')
|
filename += name.encode(encoding='ascii', errors='replace').decode('utf-8').replace('.', '_')
|
||||||
spec = importlib.util.spec_from_file_location(filename, loadfile)
|
spec = importlib.util.spec_from_file_location(filename, loadfile) # type: ignore
|
||||||
module = importlib.util.module_from_spec(spec)
|
module = importlib.util.module_from_spec(spec) # type: ignore
|
||||||
spec.loader.exec_module(module)
|
spec.loader.exec_module(module)
|
||||||
|
|
||||||
if getattr(module, 'plugin_start3', None):
|
if getattr(module, 'plugin_start3', None):
|
||||||
|
@ -279,9 +279,9 @@ def plugin_stop() -> None:
|
|||||||
def toggle_password_visibility():
|
def toggle_password_visibility():
|
||||||
"""Toggle if the API Key is visible or not."""
|
"""Toggle if the API Key is visible or not."""
|
||||||
if show_password_var.get():
|
if show_password_var.get():
|
||||||
this.apikey.config(show="")
|
this.apikey.config(show="") # type: ignore
|
||||||
else:
|
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:
|
def plugin_prefs(parent: ttk.Notebook, cmdr: str | None, is_beta: bool) -> tk.Frame:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user