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" <> wrote:
Hi, all,

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

Python-ideas mailing list
Code of Conduct: