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:
parent
fb065c5b78
commit
26b12f5b14
2
plug.py
2
plug.py
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user