Repository navigation
Conversation
Refactor owned_by assignment to use dictionary comprehension with walrus operator.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10742 +/- ##
==========================================
- Coverage 89.85% 89.85% -0.01%
==========================================
Files 153 153
Lines 20707 20703 -4
Branches 2473 2471 -2
==========================================
- Hits 18607 18603 -4
Misses 1801 1801
Partials 299 299
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
auvipy
marked this pull request as ready for review
September 30, 2026 08:34
wittachai-as
added a commit
to wittachai-as/celery
that referenced
this pull request
Oct 2, 2026
setup.py declares python_requires=">=3.10", so these branches can never be taken on a supported interpreter: - celery/utils/imports.py: the `sys.version_info >= (3, 10)` gate around `entry_points(group=namespace)` is always true; the fallback is dead. - celery/utils/time.py: the `backports.zoneinfo` fallback for < 3.9 is unreachable — `zoneinfo` has been in the stdlib since 3.9. `sys` is no longer used in this module, so the import goes too. - setup.cfg: the bdist_rpm requirement on `backports.zoneinfo>=0.2.1;python_version<'3.9'` can never apply. No behaviour change on any supported version. Rebased on current main and reduced in scope: this PR previously also rewrote the `owned_by` loop in celery/concurrency/asynpool.py, which was handled upstream in celery#10742, so that change is dropped here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor owned_by assignment to use dictionary comprehension with walrus operator.