mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 10:49:24 +00:00
Fix overload order on as_chunks
This commit is contained in:
parent
f69d4ee5cb
commit
e2d5791b67
@ -980,12 +980,12 @@ async def _achunk(iterator: AsyncIterable[T], max_size: int) -> AsyncIterator[Li
|
||||
|
||||
|
||||
@overload
|
||||
def as_chunks(iterator: Iterable[T], max_size: int) -> Iterator[List[T]]:
|
||||
def as_chunks(iterator: AsyncIterable[T], max_size: int) -> AsyncIterator[List[T]]:
|
||||
...
|
||||
|
||||
|
||||
@overload
|
||||
def as_chunks(iterator: AsyncIterable[T], max_size: int) -> AsyncIterator[List[T]]:
|
||||
def as_chunks(iterator: Iterable[T], max_size: int) -> Iterator[List[T]]:
|
||||
...
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user