3 ms·
I believe you're right that Mypy only offers compile time type checking, but not runtime. It looks like there are some active projects for runtime type checkin
by tedmiston 9y ago
I believe you're right that Mypy only offers compile time type checking, but not runtime.
It looks like there are some active projects for runtime type checking in Python and while I don't believe Mypy is related to any of them, enforce [1] looks to also use the same standard type hinting syntax from PEP 484.
[1]: https://github.com/RussBaz/enforce https://github.com/RussBaz/enforce