Browse Source

Merge 6d8cfc6a88 into 2fbed93624

pull/10452/merge
Michael H 1 month ago
committed by GitHub
parent
commit
8fc574bdc4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      discord/ext/commands/converter.py

3
discord/ext/commands/converter.py

@ -1140,6 +1140,9 @@ class Greedy(List[T]):
converter = getattr(self.converter, '__name__', repr(self.converter))
return f'Greedy[{converter}]'
def __or__(self, value: Any) -> Any:
return Union[self, value]
def __class_getitem__(cls, params: Union[Tuple[T], T]) -> Greedy[T]:
if not isinstance(params, tuple):
params = (params,)

Loading…
Cancel
Save