You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope you are well. I'm writing to suggest an improvement for the “Type Hinting Asynchronous Objects” section in Chapter 21 for the next edition.
Enhancing Clarity with Examples
I believe that including additional examples in this section would significantly enhance understanding of how to properly use type hints for asynchronous objects. Here are some specific suggestions:
Coroutines Example: A beneficial addition would be an example demonstrating type hints for coroutines. The following code showcases how to achieve this:
AsyncGenerators Example: The official typing documentation provides an excellent and clear example for AsyncGenerators. Including a similar example in the book would be valuable:
I also guess that there might be a typo on the page 825, the image is provided below:
I think “to last” phrase should be removed because Coroutine is actually covariant on the third parameter.
The text was updated successfully, but these errors were encountered:
kamalfarahani
changed the title
Suggestion: Add more examples for “Type Hinting Asynchronous Objects” section of chapter 21
Suggestion: Add more examples for “Type Hinting Asynchronous Objects” section in chapter 21
May 5, 2024
Dear Ramalho,
I hope you are well. I'm writing to suggest an improvement for the “Type Hinting Asynchronous Objects” section in Chapter 21 for the next edition.
Enhancing Clarity with Examples
I believe that including additional examples in this section would significantly enhance understanding of how to properly use type hints for asynchronous objects. Here are some specific suggestions:
I also guess that there might be a typo on the page 825, the image is provided below:
I think “to last” phrase should be removed because
Coroutine
is actually covariant on the third parameter.The text was updated successfully, but these errors were encountered: