Make mypy as strict as practical #13

Merged
alexander merged 32 commits from stricter-mypy into develop 2026-12-01 14:26:52 +01:00
Showing only changes of commit 9da2d0b703 - Show all commits

Enable the "truthy-bool" error code

Alexander Hess 2026-12-01 13:11:46 +01:00
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -480,6 +480,8 @@ enable_error_code = [
"possibly-undefined",
# Report conditions that are always true or always false
"redundant-expr",
# Report truthiness checks on objects that are always true
"truthy-bool",
]
# Check further edge cases that are rarely an issue in practice