Skip to content

Commit fd51925

Browse files
committed
mypy: zulip_bots: Fix errors in zulip_bots/zulip_bot_output.py.
1 parent 5e7f4c5 commit fd51925

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/run-mypy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ exclude = """
2222
zulip/integrations/perforce/git_p4.py
2323
2424
zulip_bots/zulip_bots/bots
25-
zulip_bots/zulip_bots/zulip_bot_output.py
2625
2726
zulip_botserver/tests/__init__.py
2827
zulip_botserver/zulip_botserver/server.py

zulip_bots/zulip_bots/zulip_bot_output.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import zulip_bots
99

1010
from six.moves import configparser
11+
from typing import Any
1112

1213
from mock import MagicMock, patch
1314
from zulip_bots.lib import StateHandler
@@ -18,6 +19,7 @@
1819
current_dir = os.path.dirname(os.path.abspath(__file__))
1920

2021
def parse_args():
22+
# type: () -> argparse.Namespace
2123
description = (
2224
"A tool to test a bot: given a provided message, provides the bot response.\n\n"
2325
'Examples: %(prog)s xkcd 1\n'
@@ -75,7 +77,7 @@ def main():
7577
sys.exit(1)
7678

7779
with patch('zulip.Client') as mock_client:
78-
mock_bot_handler = ExternalBotHandler(mock_client, bot_dir)
80+
mock_bot_handler = ExternalBotHandler(mock_client, bot_dir) # type: Any
7981
mock_bot_handler.send_reply = MagicMock()
8082
mock_bot_handler.send_message = MagicMock()
8183
mock_bot_handler.update_message = MagicMock()

0 commit comments

Comments
 (0)