From 0e000de90a59a78ddcfb7546f2f8b61041450bf5 Mon Sep 17 00:00:00 2001 From: A_D Date: Fri, 24 Jul 2020 12:26:12 +0200 Subject: [PATCH] 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 --- EDMC.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EDMC.py b/EDMC.py index 550bad04..65629dd9 100755 --- a/EDMC.py +++ b/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,