This exists already. All the annotations love on the '__annotations__' attribute is a function or method. Check that at runtime however you like!

On Jul 7, 2016 11:39 PM, "Ma Lin" <animalize81@hotmail.com> wrote:
Hi, all,

     Is it possible to add an option that allow check Type Hints in
runtime?
     So that I can enable dynamic type checking when debugging. And
disable it in final deploy, no performance lose.

regards.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/