small mypy fixes

This commit is contained in:
Anthony Sottile
2019-06-06 09:13:02 -07:00
parent 450d264623
commit ccd87f9e80
7 changed files with 8 additions and 21 deletions

View File

@@ -81,19 +81,12 @@ def _format_lines(lines):
return result
# Provide basestring in python3
try:
basestring = basestring
except NameError:
basestring = str
def issequence(x):
return isinstance(x, Sequence) and not isinstance(x, basestring)
return isinstance(x, Sequence) and not isinstance(x, str)
def istext(x):
return isinstance(x, basestring)
return isinstance(x, str)
def isdict(x):