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:
parent
e0462d8719
commit
07c43d3057
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user