mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix overload order on as_chunks
This commit is contained in:
1 parent
f69d4ee5cb
commit
e2d5791b67
1 file changed
+2
-2
+2
-2
@@ -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]]:
|
||||
...
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user