litestar
litestar copied to clipboard
chore(mypy): enable `truthy-bool` error code
Docs: https://mypy.readthedocs.io/en/stable/error_code_list2.html#check-that-expression-is-not-implicitly-true-in-boolean-context-truthy-bool
I am using # type: ignore[truthy-bool] for .components check, because I see that it is treated specially for some reason (like pragma: no cover). Is this correct?
I also removed configs that are part of the --strict flag from settings.