From ed163ddb611cb782252146d274919f0118442ddd Mon Sep 17 00:00:00 2001 From: Phoebe Date: Fri, 17 Nov 2023 22:40:08 +0100 Subject: [PATCH] [Minor] Typos and mypy --- plugins/edsm.py | 2 +- plugins/spansh_core.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/edsm.py b/plugins/edsm.py index ba292ca6..48dc80e8 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -199,7 +199,7 @@ def plugin_start3(plugin_dir: str) -> str: """ Start the plugin. - :param plugin_dir: NAme of directory this was loaded from. + :param plugin_dir: Name of directory this was loaded from. :return: Identifier string for this plugin. """ # Can't be earlier since can only call PhotoImage after window is created diff --git a/plugins/spansh_core.py b/plugins/spansh_core.py index 18a51846..8a7d87be 100644 --- a/plugins/spansh_core.py +++ b/plugins/spansh_core.py @@ -37,8 +37,8 @@ class This: self.parent: tk.Tk self.shutting_down = False # Plugin is shutting down. self.system_link: tk.Widget = None # type: ignore - self.system_name: str | None = None # type: ignore - self.system_address: str | None = None # type: ignore + self.system_name: str | None = None + self.system_address: str | None = None self.system_population: int | None = None self.station_link: tk.Widget = None # type: ignore self.station_name = None @@ -54,7 +54,7 @@ def plugin_start3(plugin_dir: str) -> str: """ Start the plugin. - :param plugin_dir: NAme of directory this was loaded from. + :param plugin_dir: Name of directory this was loaded from. :return: Identifier string for this plugin. """ return 'spansh'