mypy: Update zerver directory to use Text

This commit is contained in:
Juan Verhook
2016-12-26 22:09:35 -08:00
committed by showell
parent 5639f21188
commit cfa9c2eaf2
9 changed files with 49 additions and 56 deletions

View File

@@ -56,7 +56,7 @@ import time
import ujson
import unittest
from six.moves import urllib
from six import text_type, binary_type
from six import binary_type
from zerver.lib.str_utils import NonBinaryStr
from contextlib import contextmanager
@@ -250,7 +250,7 @@ class ZulipTestCase(TestCase):
user_profile=user_profile,
active=True,
recipient__type=Recipient.STREAM)
return [cast(text_type, get_display_recipient(sub.recipient)) for sub in subs]
return [cast(Text, get_display_recipient(sub.recipient)) for sub in subs]
def send_message(self, sender_name, raw_recipients, message_type,
content=u"test content", subject=u"test", **kwargs):