From eb983e0bbc339d94be8fad359ac53bdb23672119 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Mon, 26 Dec 2016 14:33:36 -0800 Subject: [PATCH] mypy: Convert api/ and docs/ to use typing.Text. --- zulip/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zulip/__init__.py b/zulip/__init__.py index 054948f..7feb2f3 100644 --- a/zulip/__init__.py +++ b/zulip/__init__.py @@ -38,7 +38,7 @@ from six.moves.configparser import SafeConfigParser from six.moves import urllib import logging import six -from typing import Any, Callable, Dict, Mapping, Optional, Tuple, Union, Iterable +from typing import Any, Callable, Dict, Mapping, Optional, Tuple, Union, Iterable, Text __version__ = "0.2.5" @@ -295,7 +295,7 @@ class Client(object): request = {} for (key, val) in six.iteritems(orig_request): - if isinstance(val, str) or isinstance(val, six.text_type): + if isinstance(val, str) or isinstance(val, Text): request[key] = val else: request[key] = simplejson.dumps(val)