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

plugins/inara, plug.py: Minor typing fixes

This commit is contained in:
Athanasius 2022-12-22 14:10:25 +00:00
parent fb065c5b78
commit 26b12f5b14
No known key found for this signature in database
GPG Key ID: 772697E181BB2767
2 changed files with 4 additions and 3 deletions

View File

@ -198,7 +198,7 @@ def provides(fn_name: str) -> List[str]:
def invoke(
plugin_name: str, fallback: str, fn_name: str, *args: Tuple
plugin_name: str, fallback: str | None, fn_name: str, *args: Tuple
) -> Optional[str]:
"""
Invoke a function on a named plugin.

View File

@ -35,6 +35,7 @@ from typing import OrderedDict as OrderedDictT
from typing import Sequence, Union, cast
import requests
import ttk
import edmc_data
import killswitch
@ -130,7 +131,7 @@ class This:
self.log_button: nb.Checkbutton
self.label: HyperlinkLabel
self.apikey: nb.Entry
self.apikey_label: HyperlinkLabel
self.apikey_label: tk.Label
self.events: Dict[Credentials, Deque[Event]] = defaultdict(deque)
self.event_lock: Lock = threading.Lock() # protects events, for use when rewriting events
@ -235,7 +236,7 @@ def plugin_stop() -> None:
logger.debug('Done.')
def plugin_prefs(parent: tk.Tk, cmdr: str, is_beta: bool) -> tk.Frame:
def plugin_prefs(parent: ttk.Frame, cmdr: str, is_beta: bool) -> tk.Frame:
"""Plugin Preferences UI hook."""
x_padding = 10
x_button_padding = 12 # indent Checkbuttons and Radiobuttons