diff --git a/plugins/edsm.py b/plugins/edsm.py index 9edb78a5..4023f843 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -20,6 +20,7 @@ import urllib.parse import urllib.request from queue import Queue from threading import Thread +from typing import TYPE_CHECKING, Any import requests @@ -28,6 +29,10 @@ import plug from config import applongname, appname, appversion, config from ttkHyperlinkLabel import HyperlinkLabel +if TYPE_CHECKING: + def _(x: str) -> str: + return x + logger = logging.getLogger(appname) EDSM_POLL = 0.1