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
|
# no_implicit_optional = True
|
||||||
# warn_return_any = True
|
# warn_return_any = True
|
||||||
|
|
||||||
[mypy-faulthandler]
|
|
||||||
# https://github.com/python/typeshed/pull/2627
|
|
||||||
ignore_missing_imports = True
|
|
||||||
|
|
||||||
[mypy-colorama]
|
[mypy-colorama]
|
||||||
# https://github.com/tartley/colorama/issues/206
|
# https://github.com/tartley/colorama/issues/206
|
||||||
ignore_missing_imports = True
|
ignore_missing_imports = True
|
||||||
|
@ -45,7 +45,8 @@ try:
|
|||||||
CSafeDumper as YamlDumper)
|
CSafeDumper as YamlDumper)
|
||||||
YAML_C_EXT = True
|
YAML_C_EXT = True
|
||||||
except ImportError: # pragma: no cover
|
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
|
YAML_C_EXT = False
|
||||||
|
|
||||||
import qutebrowser
|
import qutebrowser
|
||||||
|
Loading…
Reference in New Issue
Block a user