diff --git a/mypy.ini b/mypy.ini index 8fb8d89ae..b8b2cf16f 100644 --- a/mypy.ini +++ b/mypy.ini @@ -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 diff --git a/qutebrowser/utils/utils.py b/qutebrowser/utils/utils.py index 8574a3c2b..2d517043a 100644 --- a/qutebrowser/utils/utils.py +++ b/qutebrowser/utils/utils.py @@ -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