Skip to content

Commit

Permalink
fix(docs): utils.as_chunk format error (Pycord-Development#1829)
Browse files Browse the repository at this point in the history
chore(docs): utils.as_chunk format error
  • Loading branch information
JustaSqu1d authored Dec 16, 2022
1 parent 647f00f commit 59eb292
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions discord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,17 +1105,17 @@ def as_chunks(iterator: _Iter[T], max_size: int) -> _Iter[list[T]]:
.. versionadded:: 2.0
.. warning::
The last chunk collected may not be as large as ``max_size``.
Parameters
----------
iterator: Union[:class:`collections.abc.Iterator`, :class:`collections.abc.AsyncIterator`]
The iterator to chunk, can be sync or async.
max_size: :class:`int`
The maximum chunk size.
.. warning::
The last chunk collected may not be as large as ``max_size``.
Returns
-------
Union[:class:`collections.abc.Iterator`, :class:`collections.abc.AsyncIterator`]
Expand Down

0 comments on commit 59eb292

Please sign in to comment.