From 07c43d30574e74577a9a38381164592c9510ef1e Mon Sep 17 00:00:00 2001 From: A_D Date: Sun, 26 Jul 2020 20:12:56 +0200 Subject: [PATCH] added type annotations to globals --- plugins/eddb.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/eddb.py b/plugins/eddb.py index 48d63d7a..b8c9c9d1 100644 --- a/plugins/eddb.py +++ b/plugins/eddb.py @@ -24,7 +24,7 @@ import sys -from typing import Any +from typing import Any, Optional import requests from config import config @@ -35,13 +35,13 @@ STATION_UNDOCKED: str = u'×' # "Station" name to display when not docked = U+0 this: Any = sys.modules[__name__] # For holding module globals # Main window clicks -this.system_link = None -this.system = None -this.system_address = None -this.system_population = None -this.station_link = None -this.station = None -this.station_marketid = None +this.system_link: Optional[str] = None +this.system: Optional[str] = None +this.system_address: Optional[str] = None +this.system_population: Optional[int] = None +this.station_link = None # tk thing, not annotated +this.station: Optional[str] = None +this.station_marketid: Optional[int] = None def system_url(system_name: str) -> str: