litestar icon indicating copy to clipboard operation
litestar copied to clipboard

chore(mypy): enable `truthy-bool` error code

Open sobolevn opened this issue 1 year ago • 7 comments

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.

sobolevn avatar Oct 17 '24 08:10 sobolevn