Re:Type checking in Python
by ak217 on Sunday May 18, 2014 @08:09PM
(#7765005)
For Python 3, I've added optional type checking based on function annotations and decorators to the Ensure library: https://github.com/kislyuk/ensure#enforcing-function-annotat....
I think it works better than other approaches mentioned here because it (1) doesn't repeat the contents of the function signature, (2) doesn't install any magic system-wide hooks (and the attendant performance issues), and (3) is completely optional.
[ Parent
| on HN ]
There are no comments on this comment yet.