1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

added type annotations to globals

This commit is contained in:
A_D 2020-07-26 20:12:56 +02:00
parent e0462d8719
commit 07c43d3057
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -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: