Skip to content

Commit

Permalink
Fall though instead of returning Tuple[Any]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordandev678 committed Sep 19, 2024
1 parent d314b67 commit a01d55d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mypy/checkexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,11 +579,6 @@ def visit_call_expr_inner(self, e: CallExpr, allow_none_return: bool = False) ->
return TupleType(
[argtyp] * len(argtyp.items), fallback=self.named_type("builtins.tuple")
)
else:
# Fall back to what we did anyway (Tuple[Any])
return TupleType(
[AnyType(TypeOfAny.special_form)], fallback=self.named_type("builtins.tuple")
)
self.try_infer_partial_type(e)
type_context = None
if isinstance(e.callee, LambdaExpr):
Expand Down

0 comments on commit a01d55d

Please sign in to comment.