Skip to content

Commit 8555732

Browse files
committed
🐛 Fix ruff
1 parent 756ead2 commit 8555732

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

discord/enums.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,12 +1052,6 @@ class ApplicationCommandPermissionType(Enum):
10521052
channel = 3
10531053

10541054

1055-
def create_unknown_value(cls: type[T], val: Any) -> T:
1056-
value_cls = cls._enum_value_cls_ # type: ignore
1057-
name = f"unknown_{val}"
1058-
return value_cls(name=name, value=val)
1059-
1060-
10611055
def try_enum(cls: type[E], val: Any) -> E:
10621056
"""A function that tries to turn the value into enum ``cls``.
10631057

0 commit comments

Comments
 (0)