This extension improves on the default behaviour of the main Python extension's handling of mypy in terms of the options it passes, however it appears to silently pass --follow-imports=skip. This causes all imports to be replaced by Any, in turn substantially limiting the usefulness of the type checking by causing both:
- spurious errors when used in combination with
warn_return_any (possibly other cases too), and
- true errors to be missed, since any types imported (even from within the same project) are considered as
Any and thus fully compatible with any other type
This extension improves on the default behaviour of the main Python extension's handling of
mypyin terms of the options it passes, however it appears to silently pass--follow-imports=skip. This causes all imports to be replaced byAny, in turn substantially limiting the usefulness of the type checking by causing both:warn_return_any(possibly other cases too), andAnyand thus fully compatible with any other type