Skip to content

Commit 9e4c77f

Browse files
Michael0x2agvanrossum
authored andcommitted
Change an incorrect word in the async/await docs (#2068)
This commit fixes a small error with the docs for async/await -- the docs used the word "decorator" when it should have used the word "generator".
1 parent fcb3982 commit 9e4c77f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/source/kinds_of_types.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,10 +837,9 @@ will be a value of type ``Awaitable[T]``.
837837
838838
However, mypy currently does not support converting functions into
839839
coroutines. Support for this feature will be added in a future version, but
840-
for now, you can manually force the function to be a decorator by doing
840+
for now, you can manually force the function to be a generator by doing
841841
something like this:
842842

843-
844843
.. code-block:: python
845844
846845
from typing import Generator

0 commit comments

Comments
 (0)