2020-08-01 18:26:08 +00:00
|
|
|
[mypy]
|
2021-10-10 16:19:54 +00:00
|
|
|
show_error_codes = True
|
2020-08-01 18:26:08 +00:00
|
|
|
# Be strict about use of Mypy
|
|
|
|
warn_unused_ignores = True
|
|
|
|
warn_unused_configs = True
|
|
|
|
warn_redundant_casts = True
|
|
|
|
warn_return_any = True
|
|
|
|
|
|
|
|
# Avoid subtle backsliding
|
|
|
|
disallow_incomplete_defs = True
|
|
|
|
disallow_subclassing_any = True
|
2021-03-12 15:16:16 +00:00
|
|
|
# does not work with @staticmethod:
|
|
|
|
# disallow_any_decorated = True
|
2020-08-01 18:26:08 +00:00
|
|
|
|
|
|
|
# Enable gradually / for new modules
|
2021-03-12 15:16:16 +00:00
|
|
|
# check_untyped_defs = False
|
|
|
|
# disallow_untyped_calls = False
|
|
|
|
# disallow_untyped_defs = False
|
2020-08-01 18:26:08 +00:00
|
|
|
|
|
|
|
# DO NOT use `ignore_errors`; it doesn't apply
|
|
|
|
# downstream and users have to deal with them.
|