Add type: ignore for mypy __cmp__ bug.

This commit is contained in:
Tim Abbott 2016-01-27 12:18:02 -08:00
parent dd4fe7e099
commit 50ee622e1a

View file

@ -70,7 +70,7 @@ except ImportError:
sys.exit(1) sys.exit(1)
try: try:
import requests import requests
assert(LooseVersion(requests.__version__) >= LooseVersion('0.12.1')) assert(LooseVersion(requests.__version__) >= LooseVersion('0.12.1')) # type: ignore # https://github.com/JukkaL/mypy/issues/1165
except (ImportError, AssertionError): except (ImportError, AssertionError):
print("requests >=0.12.1 is not installed", file=sys.stderr) print("requests >=0.12.1 is not installed", file=sys.stderr)
sys.exit(1) sys.exit(1)