From cafc329f4035af5a9ebebe184d07ef6ea23838dc Mon Sep 17 00:00:00 2001 From: jorenham Date: Tue, 27 Jan 2026 11:29:39 +0100 Subject: [PATCH] enable the mypy "truthy-bool" error code --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cc616bc54..c52119417 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -218,7 +218,7 @@ python_version = "3.10" pretty = true disallow_any_generics = true disallow_untyped_defs = true -enable_error_code = "ignore-without-code" +enable_error_code = [ "ignore-without-code", "truthy-bool" ] extra_checks = true follow_imports = "silent" warn_redundant_casts = true