From 465d20314dc7c1acc87b000e1fd82225ddc35543 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 8 Apr 2024 09:51:20 +0200 Subject: [PATCH] gh-113317: Remove unused INVALID constant in Argument Clinic (#117624) --- Lib/test/test_clinic.py | 3 --- Tools/clinic/libclinic/function.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/Lib/test/test_clinic.py b/Lib/test/test_clinic.py index 9788ac0261fa491..a5887cdb56e3ca6 100644 --- a/Lib/test/test_clinic.py +++ b/Lib/test/test_clinic.py @@ -4048,9 +4048,6 @@ def test_Class_repr(self): self.assertRegex(repr(cls), r"") def test_FunctionKind_repr(self): - self.assertEqual( - repr(FunctionKind.INVALID), "" - ) self.assertEqual( repr(FunctionKind.CLASS_METHOD), "" ) diff --git a/Tools/clinic/libclinic/function.py b/Tools/clinic/libclinic/function.py index 1563fdf9065b7e6..572916bbe123b4c 100644 --- a/Tools/clinic/libclinic/function.py +++ b/Tools/clinic/libclinic/function.py @@ -53,7 +53,6 @@ def __repr__(self) -> str: class FunctionKind(enum.Enum): - INVALID = enum.auto() CALLABLE = enum.auto() STATIC_METHOD = enum.auto() CLASS_METHOD = enum.auto() @@ -70,7 +69,6 @@ def __repr__(self) -> str: return f"" -INVALID: Final = FunctionKind.INVALID CALLABLE: Final = FunctionKind.CALLABLE STATIC_METHOD: Final = FunctionKind.STATIC_METHOD CLASS_METHOD: Final = FunctionKind.CLASS_METHOD