Skip to content

Simplify typing_extensions pin #728

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 1 commit into from
Jul 2, 2023
Merged

Conversation

AlexWaygood
Copy link
Contributor

@AlexWaygood AlexWaygood commented Jul 2, 2023

Change Summary

typing_extensions 4.7.0 didn't work on PyPy-3.7 and PyPy-3.8, which led you to (very reasonably!) add an upper bound to your typing_extensions dependency on PyPy. However, we've since fixed the PyPy issues in typing_extensions 4.7.1 by working around the bug in PyPy-3.7 and PyPy-3.8 that caused the breakage.

Since typing_extensions 4.7.1 should work fine on PyPy-3.7 and PyPy-3.8, it should be fine to get rid of the upper bound now.

Loosening the pin here will also give typing_extensions the option of running pydantic's tests with typing_extensions's main branch on more PyPy versions in CI as part of our third-party nightly workflow. Doing that should hopefully reduce the chance of breakages like this in the future :)

Related issue number

No issue number, but this is a followup to these PRs:

Checklist

  • Unit tests for the changes exist
  • Documentation reflects the changes where applicable
  • Pydantic tests pass with this pydantic-core (except for expected changes)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

We fixed the PyPy issues in [typing_extensions 4.7.1](https://github.com/python/typing_extensions/releases/tag/4.7.1) by working around [the bug in PyPy-3.7 and PyPy-3.8](https://foss.heptapod.net/pypy/pypy/-/issues/3958).

Loosening the pin here will give us the option of running pydantic's tests with typing_extensions's main branch on more PyPy versions in CI as part of our [third-party nightly workflow](https://github.com/python/typing_extensions/blob/main/.github/workflows/third_party.yml). Doing that should hopefully reduce the chance of breakages like this in the future :)
@codecov
Copy link

codecov bot commented Jul 2, 2023

Codecov Report

Merging #728 (b548366) into main (3796409) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #728   +/-   ##
=======================================
  Coverage   93.63%   93.63%           
=======================================
  Files          99       99           
  Lines       13911    13911           
  Branches       25       25           
=======================================
  Hits        13026    13026           
  Misses        879      879           
  Partials        6        6           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3796409...b548366. Read the comment docs.

@adriangb
Copy link
Member

adriangb commented Jul 2, 2023

Thank you!

@adriangb adriangb enabled auto-merge (squash) July 2, 2023 21:53
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 2, 2023

CodSpeed Performance Report

Merging #728 will degrade performances by 10.66%

Comparing AlexWaygood:patch-1 (b548366) with main (3796409)

Summary

❌ 1 regressions
✅ 124 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main AlexWaygood:patch-1 Change
test_set_of_ints_core_json_duplicates 4.8 ms 5.4 ms -10.66%

@adriangb adriangb merged commit 52173ef into pydantic:main Jul 2, 2023
@AlexWaygood AlexWaygood deleted the patch-1 branch July 2, 2023 21:57
@AlexWaygood
Copy link
Contributor Author

Thank you!

Thanks for the lightning-fast merge! :D

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