Dynamic checking of type hints in Python 3.5+ [duplicate]
问题 This question already has answers here : How to use type hints in python 3.6? (3 answers) Closed 13 days ago . The typing module implements type hints in Python 3.5+. However, this is not enforced, it seems to currently only exist for the benefit of static type checkers such as mypy and PyCharm. I was hoping it would be a viable alternative to duck typing. Question : Is there a way to turn on dynamic type checking in Python 3.7+ that I didn't find in Google search? So for example, if I define