I haven't commented on these, as I don't use type annotations in the "usual" way., but:
On Thu, Apr 15, 2021 at 12:06 PM Samuel Colvin <[email protected]> wrote: > I maintain pydantic <https://pydantic-docs.helpmanual.io/> which uses > type annotations to provide runtime data validation. > I maintain in in-house system kinda similar to pydantic that doesn't use type annotations for validation, but does use them for other things (mostly serializing/deserializing to/from JSON), and other kinds of data validation. > using `typing.get_type_hints()` is not a good replacement for type annotations that are accessible as python objects. Absolutely. It is very, very, handy to simply have the object itself easily accessible. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/W7KPZQFMJ2WVW26KKLQDAXHWWTTWFYKQ/ Code of Conduct: http://python.org/psf/codeofconduct/
