> 3. I am -1 on ignoring annotations altogether. Sometimes they could be
> helpful at runtime: typing.NamedTuple and mypy_extensions.TypedDict are two
> examples.

ignoring annotations doesn't mean ignoring typing at all.
You can use typing.NamedTuple even when functions doesn't have __annotations__.

> Also some people use annotations for runtime checks or even for things
> unrelated to typing. I think it would be a pity to lose these
> functionalities for small performance gains.
>

Sure.  It should be option, for backward compatibility.


Regards,
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to