Closed
Description
Feature or enhancement
Let's say you have a dict of some custom annotations like I have in #122262
How users are expected to convert say an annotation dict of {'user': CustomUser[AuthToken], 'auth_callback': Callable[[CustomUser[T]], T]}
to string?
There are several ways right now:
repr
for simple types, which might not work for complex onesLines 466 to 501 in 536bc8a
annotate
objectLines 2955 to 2956 in 536bc8a
I propose adding a public and documented API for that.