From 38ae87aa65072afa8ee7e2e995969cb95c73fa18 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Wed, 9 Nov 2022 12:45:13 +0100 Subject: [PATCH] Disable truthy-iterable by default --- mypy/errorcodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mypy/errorcodes.py b/mypy/errorcodes.py index e9b828d826c26..3aee6881067e2 100644 --- a/mypy/errorcodes.py +++ b/mypy/errorcodes.py @@ -164,6 +164,7 @@ def __str__(self) -> str: "truthy-iterable", "Warn about Iterable expressions that could always evaluate to true in boolean contexts", "General", + default_enabled=False, ) NAME_MATCH: Final = ErrorCode( "name-match", "Check that type definition has consistent naming", "General"