Dedicated syntax for `Annotated`

Using + may cause ambiguity when the type on the left is a forward reference specified with a string, e.g.:

movies: Annotated['list[Movie]', 'list of movies']

would become:

movies: 'list[Movie]' + 'list of movies'

@ on the other hand is rarely overloaded so it’s safer to repurpose.

1 Like