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

mypy_test.py: Simplify add_third_party_files() #9476

Merged
merged 1 commit into from
Jan 8, 2023
Merged

Conversation

AlexWaygood
Copy link
Member

This is a cleanup PR, removing logic from mypy_test.py that's no longer necessary.

This logic was introduced in #8800 to ensure that running e.g. python tests/mypy_test.py stubs/caldav locally would work, fixing #8797. However, following #8360 (for which the logic was reworked somewhat in #9408), we now add typeshed dependencies of a stubs package to MYPYPATH when testing that stubs package. That means this logic is no longer necessary; python tests/mypy_test.py stubs/caldav still works fine when run locally with this logic removed. If you want to see exactly which directories are being added to MYPYPATH, you can run python tests/mypy_test.py stubs/caldav --verbose --verbose for a detailed log to the terminal.

@JelleZijlstra JelleZijlstra merged commit 910397c into main Jan 8, 2023
@JelleZijlstra JelleZijlstra deleted the mypytest-improve branch January 8, 2023 20:25
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.

2 participants