Make mypy as strict as practical #13
1 changed files with 7 additions and 2 deletions
Enable the "deprecated" error code
commit
a4c1574135
|
|
@ -468,8 +468,13 @@ disallow_untyped_decorators = true
|
|||
# Disallow functions without type annotations (or incomplete annotations)
|
||||
disallow_untyped_defs = true
|
||||
|
||||
# Require an error code in all "# type: ignore" comments
|
||||
enable_error_code = ["ignore-without-code"]
|
||||
# Enable error codes that are off by default
|
||||
enable_error_code = [
|
||||
# Report usages of APIs marked with `@deprecated`
|
||||
"deprecated",
|
||||
# Require an error code in all "# type: ignore" comments
|
||||
"ignore-without-code",
|
||||
]
|
||||
|
||||
# Check further edge cases that are rarely an issue in practice
|
||||
extra_checks = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue