mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
mypy: Use str for get_body in bitbucket.
We don't need to claim a union type here.
This commit is contained in:
parent
025d1fa180
commit
f7e4cc28eb
@ -1,4 +1,3 @@
|
||||
from typing import Dict, Union
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from zerver.lib.test_classes import WebhookTestCase
|
||||
@ -88,5 +87,5 @@ class BitbucketHookTests(WebhookTestCase):
|
||||
self.assertFalse(check_send_webhook_message_mock.called)
|
||||
self.assert_json_success(result)
|
||||
|
||||
def get_body(self, fixture_name: str) -> Union[str, Dict[str, str]]:
|
||||
def get_body(self, fixture_name: str) -> str:
|
||||
return self.webhook_fixture_data(self.FIXTURE_DIR_NAME, fixture_name)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user