diff --git a/zulip_bots/zulip_bots/bots/trivia_quiz/trivia_quiz.py b/zulip_bots/zulip_bots/bots/trivia_quiz/trivia_quiz.py index 7319007..d79a1cc 100644 --- a/zulip_bots/zulip_bots/bots/trivia_quiz/trivia_quiz.py +++ b/zulip_bots/zulip_bots/bots/trivia_quiz/trivia_quiz.py @@ -129,7 +129,7 @@ def get_quiz_from_payload(payload: Dict[str, Any]) -> Dict[str, Any]: answered_options=[], pending=True, correct_letter=correct_letter, - ) + ) # type: Dict[str, Any] return quiz def generate_quiz_id(storage: Any) -> str: diff --git a/zulip_bots/zulip_bots/bots/witai/witai.py b/zulip_bots/zulip_bots/bots/witai/witai.py index c2486b7..dd9cb2d 100644 --- a/zulip_bots/zulip_bots/bots/witai/witai.py +++ b/zulip_bots/zulip_bots/bots/witai/witai.py @@ -78,7 +78,7 @@ def get_handle(location: str) -> Optional[Callable[[Dict[str, Any]], Optional[st loader = spec.loader if loader is None: return None - loader.exec_module(handler) + loader.exec_module(handler) # type: ignore # FIXME: typeshed issue? return handler.handle # type: ignore except Exception as e: print(e) diff --git a/zulip_bots/zulip_bots/finder.py b/zulip_bots/zulip_bots/finder.py index 0c44b1b..dd01c27 100644 --- a/zulip_bots/zulip_bots/finder.py +++ b/zulip_bots/zulip_bots/finder.py @@ -19,7 +19,7 @@ def import_module_from_source(path: Text, name: Text) -> Any: loader = spec.loader if loader is None: return None - loader.exec_module(module) + loader.exec_module(module) # type: ignore # FIXME: typeshed issue? return module