From 4c3fa145c088cf964615f957c047514c032fdfd3 Mon Sep 17 00:00:00 2001 From: STerliakov Date: Tue, 13 May 2025 12:36:29 +0200 Subject: [PATCH] Remove unreachable block --- mypyc/ir/pprint.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/mypyc/ir/pprint.py b/mypyc/ir/pprint.py index ac0e791290ab..6c96a21e473b 100644 --- a/mypyc/ir/pprint.py +++ b/mypyc/ir/pprint.py @@ -220,19 +220,7 @@ def visit_call_c(self, op: CallC) -> str: return self.format("%r = %s(%s)", op, op.function_name, args_str) def visit_primitive_op(self, op: PrimitiveOp) -> str: - args = [] - arg_index = 0 - type_arg_index = 0 - for arg_type in zip(op.desc.arg_types): - if arg_type: - args.append(self.format("%r", op.args[arg_index])) - arg_index += 1 - else: - assert op.type_args - args.append(self.format("%r", op.type_args[type_arg_index])) - type_arg_index += 1 - - args_str = ", ".join(args) + args_str = ", ".join(self.format("%r", arg) for arg in op.args) if op.is_void: return self.format("%s %s", op.desc.name, args_str) else: