mypy: Allow trivial --strict options

This commit is contained in:
Florian Bruhin 2018-11-26 19:03:07 +01:00
parent 4b4b746791
commit fda807ce9a

View File

@ -3,6 +3,22 @@
# with conditional imports (like secrets.py).
python_version = 3.6
# --strict
warn_unused_configs = True
warn_redundant_casts = True
warn_unused_ignores = True
disallow_subclassing_any = True
# disallow_untyped_calls = True
# disallow_untyped_defs = True
# disallow_incomplete_defs = True
# check_untyped_defs = True
# disallow_untyped_decorators = True
# no_implicit_optional = True
# warn_return_any = True
# disallow_any_generics = True
[mypy-faulthandler]
# https://github.com/python/typeshed/pull/2627
ignore_missing_imports = True
@ -30,3 +46,7 @@ ignore_missing_imports = True
[mypy-bdb]
# stdlib, missing in typeshed
ignore_missing_imports = True
[mypy-qutebrowser.browser.webkit.rfc6266]
# subclasses dynamic PyPEG2 classes
disallow_subclassing_any = False