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:45:11 +00:00
parent 4eba7d697f
commit 171fd33cb6
3 changed files with 9 additions and 6 deletions

View File

@@ -13,6 +13,9 @@ ignore =
[mypy]
show_error_codes = true
enable_error_code = ignore-without-code
disallow_subclassing_any = True
# Avoid creating future gotchas emerging from bad typing