From 1edb1d24fc25d2e3c9630830d943881ab37e39b5 Mon Sep 17 00:00:00 2001 From: Stanislav Terliakov <50529348+sterliakov@users.noreply.github.com> Date: Mon, 10 Feb 2025 23:34:36 +0100 Subject: [PATCH] Remove bogus TODO added in #18585 (#18603) Removes todo added in #18585 - such normalization is not technically correct when a tuple is used as a base class. --------- Co-authored-by: Ivan Levkivskyi --- mypy/checker.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mypy/checker.py b/mypy/checker.py index 462bd1f6d2e1..25ff3734c908 100644 --- a/mypy/checker.py +++ b/mypy/checker.py @@ -8517,7 +8517,6 @@ def visit_type_var(self, t: TypeVarType) -> bool: def visit_tuple_type(self, t: TupleType, /) -> bool: # Exclude fallback to avoid bogus "need type annotation" errors - # TODO: Maybe erase plain tuples used as fallback in TupleType constructor? return self.query_types(t.items)