mypy: Use str for get_body in bitbucket.

We don't need to claim a union type here.
This commit is contained in:
Steve Howell 2020-08-20 14:49:14 +00:00 committed by Tim Abbott
parent 025d1fa180
commit f7e4cc28eb

View File

@ -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)