New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should not use --follow-imports=skip
#89
Comments
I think this has been changed in #76 already. At least upgrading to the current pre-release has fixed this issue for me. |
Thanks, I hadn't spotted that. Unfortunately I don't think that that fixes the issue here -- which is that extension is setting a value at all that can therefore differ from what a project has configured. If I recall correctly, |
@PeterJCLaw We don't really have a reason for this default other than it was what was in defaults for the python extension. We can remove it. We are open to a PR removing it. |
mypy prioritises values from configuration on its command line over that provided in configuration files. This means that the value previously provided here could override the settings for a project, cause spurious errors and/or hiding true errors. Removing this default value allows users freedom to configure their projects however they like, without the extension injecting unexpected additional configuration within the IDE context. Fixes microsoft#89
mypy prioritises values from configuration on its command line over that provided in configuration files. This means that the value previously provided here could override the settings for a project, cause spurious errors and/or hiding true errors. Removing this default value allows users freedom to configure their projects however they like, without the extension injecting unexpected additional configuration within the IDE context. Tested manually by opening a project which has a `setup.cfg` and changing the `follow_imports` value within that file, then checking the errors reported from `mypy` change accordingly. Fixes microsoft#89
mypy prioritises values from configuration on its command line over that provided in configuration files. This means that the value previously provided here could override the settings for a project, cause spurious errors and/or hiding true errors. Removing this default value allows users freedom to configure their projects however they like, without the extension injecting unexpected additional configuration within the IDE context. Tested manually by opening a project which has a `setup.cfg` and changing the `follow_imports` value within that file, then checking the errors reported from `mypy` change accordingly. Fixes #89
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 byAny
, in turn substantially limiting the usefulness of the type checking by causing both:warn_return_any
(possibly other cases too), andAny
and thus fully compatible with any other typeThe text was updated successfully, but these errors were encountered: