mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
gh-113317: Remove unused INVALID constant in Argument Clinic (#117624)
This commit is contained in:
parent
a453f5ef9d
commit
e1eeb990bd
2 changed files with 0 additions and 5 deletions
|
|
@ -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>"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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"<clinic.FunctionKind.{self.name}>"
|
||||
|
||||
|
||||
INVALID: Final = FunctionKind.INVALID
|
||||
CALLABLE: Final = FunctionKind.CALLABLE
|
||||
STATIC_METHOD: Final = FunctionKind.STATIC_METHOD
|
||||
CLASS_METHOD: Final = FunctionKind.CLASS_METHOD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue