aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-07-29 15:26:02 -0400
committerRapptz <[email protected]>2017-07-29 15:26:02 -0400
commit9cfa39a1c79604d7854777a4e81855ade31829ec (patch)
tree24d296d5a5466b337e1532ddcb28df74f29ef823 /docs/api.rst
parentRename avatar_is_animated to is_avatar_animated and make it a method. (diff)
downloaddiscord.py-9cfa39a1c79604d7854777a4e81855ade31829ec.tar.xz
discord.py-9cfa39a1c79604d7854777a4e81855ade31829ec.zip
Fix AsyncIterator documentation to properly show coroutines.
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/api.rst b/docs/api.rst
index f42e81f4..8a3240af 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -1267,18 +1267,20 @@ Certain utilities make working with async iterators easier, detailed below.
that this is only available in Python 3.5 or higher.
- .. method:: next()
+ .. comethod:: next()
+
+ |coro|
Advances the iterator by one, if possible. If no more items are found
then this raises :exc:`NoMoreItems`.
- .. method:: get(**attrs)
+ .. comethod:: get(**attrs)
|coro|
Similar to :func:`utils.get` except run over the async iterator.
- .. method:: find(predicate)
+ .. comethod:: find(predicate)
|coro|
@@ -1290,7 +1292,7 @@ Certain utilities make working with async iterators easier, detailed below.
:param predicate: The predicate to use. Can be a coroutine.
:return: The first element that returns ``True`` for the predicate or ``None``.
- .. method:: flatten()
+ .. comethod:: flatten()
|coro|