On Sun, Apr 11, 2021 at 9:41 PM Paul Bryan <pbryan@anode.ca> wrote:
I'm in favour of the approach proposed in PEP 649.

Movie trailer: "In a world where annotations are arbitrary non-Python syntax..."

It seems to me we could always have annotations evaluate to Python expressions *and* support any arbitrary syntax (e.g. through Annotated[...] or similar mechanism). What would a relaxed inline syntax provide that a well-placed Annotated[type, ArbitraryNonPythonSyntax("...")] annotation wouldn't? .

I'm not a fan of Annotated -- it's an escape hook of last resort, not the way to add new syntax in the future. New syntax should enhance usability and readability, and Annotated does neither.

--Guido van Rossum (python.org/~guido)