mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
zerver/webhooks: Change use of typing.Text to str.
This commit is contained in:
committed by
Tim Abbott
parent
e8506b5020
commit
64ddfc6ac0
@@ -1,6 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import urllib
|
||||
from typing import Text
|
||||
|
||||
from zerver.lib.test_classes import WebhookTestCase
|
||||
from zerver.models import get_realm, get_user
|
||||
@@ -39,5 +38,5 @@ class GocdHookTests(WebhookTestCase):
|
||||
content_type="application/x-www-form-urlencoded"
|
||||
)
|
||||
|
||||
def get_body(self, fixture_name: Text) -> Text:
|
||||
def get_body(self, fixture_name: str) -> str:
|
||||
return self.webhook_fixture_data("gocd", fixture_name, file_type="json")
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
from typing import Any, Dict, Iterable, Optional, Text
|
||||
from typing import Any, Dict, Iterable, Optional
|
||||
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
Reference in New Issue
Block a user