<p dir="ltr">This exists already. All the annotations love on the '__annotations__' attribute is a function or method. Check that at runtime however you like!</p>
<div class="gmail_quote">On Jul 7, 2016 11:39 PM, "Ma Lin" <<a href="mailto:animalize81@hotmail.com">animalize81@hotmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, all,<br>
<br>
     Is it possible to add an option that allow check Type Hints in<br>
runtime?<br>
     So that I can enable dynamic type checking when debugging. And<br>
disable it in final deploy, no performance lose.<br>
<br>
regards.<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div>