File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ decorator to convert a generator into a coroutine.
797
797
Note that we set the ``YieldType `` of the generator to be ``Any `` in the
798
798
following example. This is because the exact yield type is an implementation
799
799
detail of the coroutine runner (e.g. the ``asyncio `` event loop) and your
800
- couroutine shouldn't have to know or care about what precisely that type is.
800
+ coroutine shouldn't have to know or care about what precisely that type is.
801
801
802
802
.. code-block :: python
803
803
@@ -852,7 +852,7 @@ will be a value of type ``Awaitable[T]``.
852
852
yield
853
853
return " placeholder"
854
854
855
- You may also optionally choose to create a subclass of ``Awaitable `` instead:
855
+ You may also choose to create a subclass of ``Awaitable `` instead:
856
856
857
857
.. code-block :: python
858
858
@@ -870,7 +870,7 @@ You may also optionally choose to create a subclass of ``Awaitable`` instead:
870
870
yield from asyncio.sleep(0.1 )
871
871
return " Blastoff!"
872
872
873
- def countdown_3 (tag : str , count : int ) -> Awaitable[None ]:
873
+ def countdown_3 (tag : str , count : int ) -> Awaitable[str ]:
874
874
return MyAwaitable(tag, count)
875
875
876
876
loop = asyncio.get_event_loop()
You can’t perform that action at this time.
0 commit comments