KEMBAR78
Invalidate metadata if errors were previously ignored by mhahnenberg · Pull Request #3793 · python/mypy · GitHub
Skip to content

Conversation

mhahnenberg
Copy link
Contributor

Using --incremental with --follow-imports=silent triggered a bug where a
file was not typechecked due to the presence of a metadata file
and accompanying AST from a previous run and would therefore not print any
errors. This diff fixes the issue by recording whether errors were
silenced in the metadata file when it was created and ignoring these files if
errors are no longer silenced.

Fixes #3639

Using --incremental with --follow-imports=silent triggered a bug where a
file was not typechecked due to the presence of a metadata file
and accompanying AST from a previous run and would therefore not print any
errors. This diff fixes the issue by recording whether errors were
silenced in the metadata file when it was created and ignoring these files if
errors are no longer silenced.
@gvanrossum
Copy link
Member

Sorry, it's vacation season and there are few people around to review this. We'll get to it.

@gvanrossum gvanrossum self-assigned this Aug 22, 2017
@gvanrossum
Copy link
Member

LG, waiting for the tests to pass after the resolve.

@gvanrossum gvanrossum merged commit 64d5b96 into python:master Aug 22, 2017
@gvanrossum
Copy link
Member

Thanks! This addresses a nasty obscure corner case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--incremental --follow-imports=silent run separately on different files does not produce errors

2 participants