mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-09-11 14:58:00 +00:00
Fix overload order on as_chunks
This commit is contained in:
+2
-2
@@ -980,12 +980,12 @@ async def _achunk(iterator: AsyncIterable[T], max_size: int) -> AsyncIterator[Li
|
|||||||
|
|
||||||
|
|
||||||
@overload
|
@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
|
@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]]:
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user