Michael H
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
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,) |
|
|
|
|