Adjustments for mypy upgrade
This commit is contained in:
parent
ddb0e050ac
commit
184e41b538
4
mypy.ini
4
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user