mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-23 00:42:56 +00:00
Fix overload order on as_chunks
This commit is contained in:
committed by
GitHub
parent
f69d4ee5cb
commit
e2d5791b67
@@ -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