Skip to content

Commit

Permalink
Remove bogus TODO added in #18585 (#18603)
Browse files Browse the repository at this point in the history
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 <levkivskyi@gmail.com>
  • Loading branch information
sterliakov and ilevkivskyi authored Feb 10, 2025
1 parent 7548cd1 commit 1edb1d2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 1edb1d2

Please sign in to comment.