Skip to content

Extend tests to check if mypy re-checks specific files during incremental mode #1811

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

Merged
merged 4 commits into from
Jul 6, 2016

Conversation

Michael0x2a
Copy link
Collaborator

This commit adds an [expectStale ...] annotation which, when added to incremental tests, will make sure that only the files listed in the annotation are rechecked by mypy during the second run in incremental mode.

This commit adds an [expectStale ...] annotation which, when added to
incremental tests, will make sure that only the files listed in the
annotation are rechecked by mypy during the second run in incremental
mode.
"""

def __init__(self, manager: 'BuildManager') -> None:
self.manager = manager
self.files = manager.modules
self.types = manager.type_checker.type_map
self.errors = manager.errors.messages()
self.stale = manager.stale_modules
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you even need this? The check could just pull the info out of self.manager.stale_modules.

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.

3 participants