Be stricter about mypy needing error codes

These make it clearer what's being ignored and harder to
accidentally ignore more than expected.
This commit is contained in:
Peter Law
2023-02-13 19:29:03 +00:00
parent 664b10a5c6
commit dc4e48d7c7

View File

@@ -31,6 +31,9 @@ max-line-length = 100
# Exclude our copies of external stubs
exclude = ^jedi/third_party
show_error_codes = true
enable_error_code = ignore-without-code
# Ensure generics are explicit about what they are (e.g: `List[str]` rather than
# just `List`)
disallow_any_generics = True