queue_processors, python_examples: Fix mypy errors.

zerver/openapi/python_examples.py:105: error: Argument 1 to "get_user_presence" of "Client" has incompatible type "str"; expected "Dict[str, Any]"
    zerver/openapi/python_examples.py:563: error: Argument 1 to "add_reaction" of "Client" has incompatible type "Dict[str, object]"; expected "Dict[str, str]"
    zerver/openapi/python_examples.py:576: error: Argument 1 to "remove_reaction" of "Client" has incompatible type "Dict[str, object]"; expected "Dict[str, str]"
    zerver/worker/queue_processors.py:587: error: Argument "client" to "extract_query_without_mention" has incompatible type "EmbeddedBotHandler"; expected "ExternalBotHandler"

These were only missed because mypy daemon mode requires us to set
`follow_imports = skip` for the `zulip` package.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2019-08-06 18:44:04 -07:00
committed by Tim Abbott
parent bfc5617f04
commit a5596011a0
7 changed files with 17 additions and 13 deletions

View File

@@ -96,6 +96,12 @@ follow_imports = skip
[mypy-zulint.printer]
follow_imports = skip
[mypy-zulip_bots.custom_exceptions]
follow_imports = skip
[mypy-zulip_bots.lib]
follow_imports = skip
#
#