From 4eed4404c62b25566fbcbc507c154f0c9e1e70a2 Mon Sep 17 00:00:00 2001 From: A_D Date: Sun, 26 Jul 2020 19:42:34 +0200 Subject: [PATCH] Added Any type hint to `this` Resolves most type warnings --- plugins/eddb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/eddb.py b/plugins/eddb.py index 09f84710..7eb134d6 100644 --- a/plugins/eddb.py +++ b/plugins/eddb.py @@ -24,6 +24,7 @@ import sys +from typing import Any import requests from config import config @@ -31,7 +32,7 @@ from config import config STATION_UNDOCKED: str = u'×' # "Station" name to display when not docked = U+00D7 -this = sys.modules[__name__] # For holding module globals +this: Any = sys.modules[__name__] # For holding module globals # Main window clicks this.system_link = None