From a01d55d44de0c9806e5814b294935dbb67e51515 Mon Sep 17 00:00:00 2001 From: Jordandev678 <20153053+Jordandev678@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:36:51 +0000 Subject: [PATCH] Fall though instead of returning Tuple[Any] --- mypy/checkexpr.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 21ed7e420ff4..5482ab562c1e 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -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):