Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

mypy: Use str for get_body in bitbucket.

Steve Howellf7e4cc28ebcf
diff --git a/zerver/webhooks/bitbucket/tests.py b/zerver/webhooks/bitbucket/tests.py
index 0d7c9a50f8c..bcaf201f730 100644
--- a/zerver/webhooks/bitbucket/tests.py
+++ b/zerver/webhooks/bitbucket/tests.py
@@ -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)