api/zulip/__init__.py: Make compatible with newer mypy.
This commit is contained in:
parent
b2c73d5346
commit
d198eedbcd
|
@ -247,10 +247,10 @@ class Client(object):
|
||||||
request = {}
|
request = {}
|
||||||
|
|
||||||
for (key, val) in six.iteritems(orig_request):
|
for (key, val) in six.iteritems(orig_request):
|
||||||
if not (isinstance(val, str) or isinstance(val, six.text_type)):
|
if isinstance(val, str) or isinstance(val, six.text_type):
|
||||||
request[key] = simplejson.dumps(val)
|
|
||||||
else:
|
|
||||||
request[key] = val
|
request[key] = val
|
||||||
|
else:
|
||||||
|
request[key] = simplejson.dumps(val)
|
||||||
|
|
||||||
query_state = {
|
query_state = {
|
||||||
'had_error_retry': False,
|
'had_error_retry': False,
|
||||||
|
|
Loading…
Reference in a new issue