That's not a bad idea, especially given that async function *definitions* (as opposed to types) have their own syntax as well ('async def'). On Sat, Aug 14, 2021 at 7:34 PM Zomatree <angelokontaxis@hotmail.com> wrote:
Adding onto this, i think something similar to `async () -> ...` would be nice with this, currently type hinting something as a coroutine function can be annoying as it requires making the functions return a `Coroutine[Any, Any, T]` which can make the signature longer than needed. _______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/ Member address: guido@python.org
-- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...>