Update settngs to typed version fixes #453

This commit is contained in:
Timmy Welch 2023-04-25 00:57:02 -07:00
parent f94c9ef857
commit 1dc93c351d
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -40,15 +40,15 @@ logger = logging.getLogger(__name__)
class CLI:
def __init__(self, config: settngs.Namespace, talkers: dict[str, ComicTalker]):
def __init__(self, config: settngs.Namespace, talkers: dict[str, ComicTalker]) -> None:
self.config = config
self.talkers = talkers
self.batch_mode = False
def current_talker(self) -> ComicTalker:
if self.config[0].talker_source in self.talkers:
return self.talkers[self.config[0].talker_source]
logger.error("Could not find the '%s' talker", self.config[0].talker_source)
if self.config.talker_source in self.talkers:
return self.talkers[self.config.talker_source]
logger.error("Could not find the '%s' talker", self.config.talker_source)
raise SystemExit(2)
def actual_issue_data_fetch(self, issue_id: str) -> GenericMetadata:

View File

@ -42,7 +42,7 @@ install_requires =
pycountry
rapidfuzz>=2.12.0
requests==2.*
settngs==0.6.2
settngs==0.6.3
text2digits
typing-extensions
wordninja