Skip to content
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

Remove unnecessary assertion during recheck #18330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kcornw
Copy link
Contributor

@kcornw kcornw commented Dec 23, 2024

Fixes #15795

In cmd_recheck function of dmypy_server.py, when remove or update is provided, the sources list is altered appropriately. After that, however, there is no mechanism (nor should there be) to reset remove and update to None. The presence of remove or update being non-None is expected in scenarios where files are specifically being removed or updated. Thus, asserting them to be None contradicts their usage.

Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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.

(🐞) dmypy recheck --update crashes
1 participant