Skip to content

Commit

Permalink
pythongh-113317: Remove unused INVALID constant in Argument Clinic (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner authored and diegorusso committed Apr 17, 2024
1 parent e5832fa commit 465d203
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Lib/test/test_clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4048,9 +4048,6 @@ def test_Class_repr(self):
self.assertRegex(repr(cls), r"<clinic.Class 'foo' at \d+>")

def test_FunctionKind_repr(self):
self.assertEqual(
repr(FunctionKind.INVALID), "<clinic.FunctionKind.INVALID>"
)
self.assertEqual(
repr(FunctionKind.CLASS_METHOD), "<clinic.FunctionKind.CLASS_METHOD>"
)
Expand Down
2 changes: 0 additions & 2 deletions Tools/clinic/libclinic/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -70,7 +69,6 @@ def __repr__(self) -> str:
return f"<clinic.FunctionKind.{self.name}>"


INVALID: Final = FunctionKind.INVALID
CALLABLE: Final = FunctionKind.CALLABLE
STATIC_METHOD: Final = FunctionKind.STATIC_METHOD
CLASS_METHOD: Final = FunctionKind.CLASS_METHOD
Expand Down

0 comments on commit 465d203

Please sign in to comment.