3 ms·
I wrote a decorator-driven library to do optional type checking at runtime with no need for a special interpreter :) https://github.com/kislyuk/ensure https://
by ak217 12y ago
I wrote a decorator-driven library to do optional type checking at runtime with no need for a special interpreter :)
https://github.com/kislyuk/ensure https://github.com/kislyuk/ensure
(Having optional static type checks in the core interpreter would be nice, though Alex Gaynor's concerns linked in another comment are very valid.)
- untothebreach 12y agoI think one of the strengths of Mypy's approach is the fact that it _doesn't_ do type checking at runtime. It may be inconvenient to have a separate step for type checking, but it also doesn't impart any runtime performance penalty.