Re:Mypy 0.3 Released – optional static type checker for Python
by ddfisher on Friday February 19, 2016 @10:01PM
(#11138536)
This is intended behavior, actually! By default, mypy doesn't type check the interior of functions that don't have any type annotations. This lets you slowly introduce types to a large codebase without having to convert everything at once (or even file by file). Adding a type annotation to "bar" will cause mypy to check it:
[ Parent
| on HN ]
There are no comments on this comment yet.