mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-17 07:41:13 +03:00
added type annotations to globals
This commit is contained in:
parent
e0462d8719
commit
07c43d3057
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from typing import Any
|
from typing import Any, Optional
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from config import config
|
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
|
this: Any = sys.modules[__name__] # For holding module globals
|
||||||
|
|
||||||
# Main window clicks
|
# Main window clicks
|
||||||
this.system_link = None
|
this.system_link: Optional[str] = None
|
||||||
this.system = None
|
this.system: Optional[str] = None
|
||||||
this.system_address = None
|
this.system_address: Optional[str] = None
|
||||||
this.system_population = None
|
this.system_population: Optional[int] = None
|
||||||
this.station_link = None
|
this.station_link = None # tk thing, not annotated
|
||||||
this.station = None
|
this.station: Optional[str] = None
|
||||||
this.station_marketid = None
|
this.station_marketid: Optional[int] = None
|
||||||
|
|
||||||
|
|
||||||
def system_url(system_name: str) -> str:
|
def system_url(system_name: str) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user