mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-16 09:10:35 +03:00
Replaced type annotation with Optional
The return is Optional so the annotation on the other side must be as well, lest we have large red squiggles
This commit is contained in:
parent
3dfca91e1d
commit
0e000de90a
4
EDMC.py
4
EDMC.py
@ -8,7 +8,7 @@ import json
|
||||
import requests
|
||||
import sys
|
||||
import os
|
||||
from typing import Any
|
||||
from typing import Any, Optional
|
||||
|
||||
# workaround for https://github.com/EDCD/EDMarketConnector/issues/568
|
||||
os.environ["EDMC_NO_UI"] = "1"
|
||||
@ -83,7 +83,7 @@ def main():
|
||||
|
||||
if args.version:
|
||||
updater = Updater(provider='internal')
|
||||
newversion: EDMCVersion = updater.check_appcast()
|
||||
newversion: Optional[EDMCVersion] = updater.check_appcast()
|
||||
if newversion:
|
||||
print('{CURRENT} ("{UPDATE}" is available)'.format(
|
||||
CURRENT=appversion,
|
||||
|
Loading…
x
Reference in New Issue
Block a user