Skip to content

Commit c2fd9fa

Browse files
committed
Add a todo
1 parent 0f560b3 commit c2fd9fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypy/checkexpr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5110,6 +5110,9 @@ def _first_or_join_fast_item(self, items: list[Type]) -> Type | None:
51105110
return items[0]
51115111
typ = join.join_type_list(items)
51125112
if not allow_fast_container_literal(typ):
5113+
# TODO: This is overly strict, many other types can be joined safely here.
5114+
# However, our join implementation isn't bug-free, and some joins may produce
5115+
# undesired `Any`s or even more surprising results.
51135116
return None
51145117
return typ
51155118

0 commit comments

Comments
 (0)