Skip to content

Change ClientSession middlewares default to be an empty tuple #10959

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 2 commits into from
May 23, 2025

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented May 23, 2025

This will avoid one breaking change in 4.0 in when we make the other change in #10890 and remove if effective_middlewares:

closes #10905

This will avoid one breaking change in 4.0 in when
we make the other change in #10890

closes #10905
@bdraco bdraco requested review from webknjaz and asvetlov as code owners May 23, 2025 02:03
@bdraco bdraco added this to the 3.12 milestone May 23, 2025
@bdraco bdraco added the backport-3.12 Trigger automatic backporting to the 3.12 release branch by Patchback robot label May 23, 2025
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label May 23, 2025
Copy link

codecov bot commented May 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.76%. Comparing base (5dcb36a) to head (088d1b7).
Report is 1 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10959   +/-   ##
=======================================
  Coverage   98.76%   98.76%           
=======================================
  Files         129      129           
  Lines       39541    39541           
  Branches     2185     2185           
=======================================
+ Hits        39051    39054    +3     
+ Misses        342      339    -3     
  Partials      148      148           
Flag Coverage Δ
CI-GHA 98.64% <ø> (+<0.01%) ⬆️
OS-Linux 98.35% <ø> (+<0.01%) ⬆️
OS-Windows 96.53% <ø> (ø)
OS-macOS 97.50% <ø> (ø)
Py-3.10.11 97.40% <ø> (+<0.01%) ⬆️
Py-3.10.17 97.94% <ø> (+<0.01%) ⬆️
Py-3.11.12 98.02% <ø> (+<0.01%) ⬆️
Py-3.11.9 97.48% <ø> (+<0.01%) ⬆️
Py-3.12.10 98.41% <ø> (-0.01%) ⬇️
Py-3.13.3 98.40% <ø> (ø)
Py-3.9.13 97.27% <ø> (+<0.01%) ⬆️
Py-3.9.22 97.80% <ø> (ø)
Py-pypy7.3.16 93.20% <ø> (+0.12%) ⬆️
VM-macos 97.50% <ø> (ø)
VM-ubuntu 98.35% <ø> (+<0.01%) ⬆️
VM-windows 96.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

codspeed-hq bot commented May 23, 2025

CodSpeed Performance Report

Merging #10959 will not alter performance

Comparing empty_tuple_client_session_middleware (088d1b7) with master (5dcb36a)

Summary

✅ 59 untouched benchmarks

@bdraco bdraco merged commit cc234c6 into master May 23, 2025
42 checks passed
@bdraco bdraco deleted the empty_tuple_client_session_middleware branch May 23, 2025 02:18
Copy link
Contributor

patchback bot commented May 23, 2025

Backport to 3.12: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.12/cc234c6df051228245dd01d0ec638ea7067eeb26/pr-10959

Backported as #10960

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request May 23, 2025
bdraco added a commit that referenced this pull request May 23, 2025
…default to be an empty tuple (#10960)

Co-authored-by: J. Nick Koston <[email protected]>
closes #10905
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-3.12 Trigger automatic backporting to the 3.12 release branch by Patchback robot bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potentially simplify client middleware default args to () instead of None
1 participant