1
0
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:
A_D 2020-07-24 12:26:12 +02:00 committed by Athanasius
parent 3dfca91e1d
commit 0e000de90a

View File

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