From 0b05fa1052e98b1ee98a039b60801dfb704308b6 Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Fri, 15 Aug 2025 15:14:06 +0100 Subject: [PATCH 1/2] [mypyc] Remove unreachable code See #19050 for context. --- mypyc/test/test_cheader.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mypyc/test/test_cheader.py b/mypyc/test/test_cheader.py index 7ab055c735ad..9aa7e212705f 100644 --- a/mypyc/test/test_cheader.py +++ b/mypyc/test/test_cheader.py @@ -32,8 +32,6 @@ def check_name(name: str) -> None: registry.function_ops.values(), ]: for ops in values: - if isinstance(ops, PrimitiveDescription): - ops = [ops] for op in ops: if op.c_function_name is not None: check_name(op.c_function_name) From 066f4caea8a0d96c6e95e0ade56fb5b9f8a97f00 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 15 Aug 2025 14:16:12 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mypyc/test/test_cheader.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mypyc/test/test_cheader.py b/mypyc/test/test_cheader.py index 9aa7e212705f..ec9e2c4cf450 100644 --- a/mypyc/test/test_cheader.py +++ b/mypyc/test/test_cheader.py @@ -7,7 +7,6 @@ import re import unittest -from mypyc.ir.ops import PrimitiveDescription from mypyc.primitives import registry