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 883a3ab8cc - Show all commits

Enable the "truthy-iterable" error code

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

View file

@ -482,6 +482,8 @@ enable_error_code = [
"redundant-expr",
# Report truthiness checks on objects that are always true
"truthy-bool",
# Report truthiness checks on `Iterable`s that are always true
"truthy-iterable",
]
# Check further edge cases that are rarely an issue in practice