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
{{ message }}
Repository navigation
Suggestion: Add more examples for “Type Hinting Asynchronous Objects” section in chapter 21 #44
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:
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 [/+]on May 5, 2024
Activity
[-]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 [/+]