10000 gh-113317: Remove unused INVALID constant in Argument Clinic (#117624) · python/cpython@e1eeb99 · GitHub
[go: up one dir, main page]

Skip to content

Commit e1eeb99

Browse files
authored
gh-113317: Remove unused INVALID constant in Argument Clinic (#117624)
1 parent a453f5e commit e1eeb99

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

Lib/test/test_clinic.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4048,9 +4048,6 @@ def test_Class_repr(self):
40484048
self.assertRegex(repr(cls), r"<clinic.Class 'foo' at \d+>")
40494049

40504050
def test_FunctionKind_repr(self):
4051-
self.assertEqual(
4052-
repr(FunctionKind.INVALID), "<clinic.FunctionKind.INVALID>"
4053-
)
40544051
self.assertEqual(
40554052
repr(FunctionKind.CLASS_METHOD), "<clinic.FunctionKind.CLASS_METHOD>"
40564053
)

Tools/clinic/libclinic/function.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def __repr__(self) -> str:
5353

5454

5555
class FunctionKind(enum.Enum):
56-
INVALID = enum.auto()
5756
CALLABLE = enum.auto()
5857
STATIC_METHOD = enum.auto()
5958
CLASS_METHOD = enum.auto()
@@ -70,7 +69,6 @@ def __repr__(self) -> str:
7069
return f"<clinic.FunctionKind.{self.name}>"
7170

7271

73-
INVALID: Final = FunctionKind.INVALID
7472
CALLABLE: Final = FunctionKind.CALLABLE
7573
STATIC_METHOD: Final = FunctionKind.STATIC_METHOD
7674
CLASS_METHOD: Final = FunctionKind.CLASS_METHOD

0 commit comments

Comments
 (0)
0