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

Bump pytest to >=7.4.0 #15611

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Bump pytest to >=7.4.0 #15611

merged 1 commit into from
Jul 12, 2023

Conversation

AlexWaygood
Copy link
Member

The 7.4.0 release of pytest broke mypy because we were using some undocumented, private API that was removed. Ideally we'd stop using the private API, but nobody seems to remember why we started using the private API in the first place (see #15501 (comment), and following comments). For now it (unfortunately) seems safer to just migrate to the new private API rather than try to figure out an alternative using public API.

I also took @bluetech's advice in #15501 (comment) to improve the type annotations in the method in question.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2023

Diff from mypy_primer, showing the effect of this PR on open source code:

vision (https://github.com/pytorch/vision): typechecking got 1.32x faster (42.3s -> 32.0s)
(Performance measurements are based on a single noisy sample)

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