Adjustments for mypy upgrade

This commit is contained in:
Florian Bruhin 2018-12-10 20:03:31 +01:00
parent ddb0e050ac
commit 184e41b538
2 changed files with 2 additions and 5 deletions

View File

@ -18,10 +18,6 @@ disallow_untyped_decorators = True
# no_implicit_optional = True
# warn_return_any = True
[mypy-faulthandler]
# https://github.com/python/typeshed/pull/2627
ignore_missing_imports = True
[mypy-colorama]
# https://github.com/tartley/colorama/issues/206
ignore_missing_imports = True

View File

@ -45,7 +45,8 @@ try:
CSafeDumper as YamlDumper)
YAML_C_EXT = True
except ImportError: # pragma: no cover
from yaml import SafeLoader as YamlLoader, SafeDumper as YamlDumper
from yaml import (SafeLoader as YamlLoader, # type: ignore
SafeDumper as YamlDumper)
YAML_C_EXT = False
import qutebrowser