On 2021-12-13 17:07, Steven D'Aprano wrote:
>    As an aside, seeing what the docs say about Annotated makes me think
>that "Annotated" is a very bad name for this thing.  It confuses the
>idea of a type annotation (i.e., attached to a variable) with this
>type-incorporating-a-label, where neither the label nor the type is
>actually an annotation in the type-annotation sense (because they have
>not been attached to a variable to annotate it).
Right!


>It seems it would have
>been better to called Annotated "Tagged" or "Labeled" or some such thing
>to make it clear that when you using it you are defining a new
>special-purpose type for use in later annotations./

Then let's revisit this issue after we have fixed this problem by renaming typing.Annotated to something else (or creating a new name and deprecating the old name but keeping it for backward compatibility).

--
Brendan Barnwell
"Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail."
   --author unknown
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/LK62MWDXWRR7BSZU4L2Y34JHLXARBJH2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to