We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4be31e3 commit 5ddd192Copy full SHA for 5ddd192
discord/utils.py
@@ -1307,17 +1307,6 @@ def as_chunks(iterator: _Iter[T], max_size: int) -> _Iter[list[T]]:
1307
return _chunk(iterator, max_size)
1308
1309
1310
-def flatten_literal_params(parameters: Iterable[Any]) -> tuple[Any, ...]:
1311
- params = []
1312
- literal_cls = type(Literal[0])
1313
- for p in parameters:
1314
- if isinstance(p, literal_cls):
1315
- params.extend(p.__args__)
1316
- else:
1317
- params.append(p)
1318
- return tuple(params)
1319
-
1320
1321
def normalise_optional_params(parameters: Iterable[Any]) -> tuple[Any, ...]:
1322
none_cls = type(None)
1323
return tuple(p for p in parameters if p is not none_cls) + (none_cls,)
0 commit comments