Skip to content

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.

3 participants