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