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

[PR #9174/98b363e4 backport][3.10] Add a cache to must_be_empty_body #9190

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Sep 18, 2024

This is a backport of PR #9174 as merged into master (98b363e).

What do these changes do?

Nearly all the calls are going to be the same so we can cache the logic

I couldn't figure out how to avoid this call in most cases like #9172 so a cache made more sense.

Are there changes in behavior for the user?

no

Is it a substantial burden for the maintainers to support this?

no

related issue #2779

before
must_be_empty_body_before

after
must_be_empty_body_after

@bdraco bdraco enabled auto-merge (squash) September 18, 2024 14:42
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.78%. Comparing base (31c0753) to head (3b6c10f).
Report is 165 commits behind head on 3.10.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             3.10    #9190      +/-   ##
==========================================
+ Coverage   97.71%   97.78%   +0.06%     
==========================================
  Files         108      108              
  Lines       34557    34558       +1     
  Branches     4125     4126       +1     
==========================================
+ Hits        33769    33792      +23     
+ Misses        590      572      -18     
+ Partials      198      194       -4     
Flag Coverage Δ
CI-GHA 97.67% <100.00%> (+0.05%) ⬆️
OS-Linux 97.35% <100.00%> (+0.04%) ⬆️
OS-Windows 94.93% <100.00%> (+0.06%) ⬆️
OS-macOS 97.05% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 97.13% <100.00%> (+<0.01%) ⬆️
Py-3.10.14 96.88% <100.00%> (+<0.01%) ⬆️
Py-3.10.15 96.99% <100.00%> (+<0.01%) ⬆️
Py-3.11.10 96.79% <100.00%> (?)
Py-3.11.9 97.22% <100.00%> (-0.08%) ⬇️
Py-3.12.5 96.89% <100.00%> (-0.19%) ⬇️
Py-3.12.6 97.32% <100.00%> (+0.18%) ⬆️
Py-3.8.10 94.55% <100.00%> (+<0.01%) ⬆️
Py-3.8.18 96.86% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 97.03% <100.00%> (+0.30%) ⬆️
Py-3.9.19 96.97% <100.00%> (+0.18%) ⬆️
Py-3.9.20 ?
Py-pypy7.3.16 96.57% <100.00%> (?)
VM-macos 97.05% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 97.35% <100.00%> (+0.04%) ⬆️
VM-windows 94.93% <100.00%> (+0.06%) ⬆️

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.

@bdraco bdraco merged commit 2770e61 into 3.10 Sep 18, 2024
31 of 32 checks passed
@bdraco bdraco deleted the patchback/backports/3.10/98b363e4fae2200303ad37730eed2ef1b460015d/pr-9174 branch September 18, 2024 15:08
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.

1 participant