Skip to content

Refactor owned_by to use dictionary comprehension - #10742

Merged
auvipy merged 1 commit into
mainfrom
dictcomp
Sep 30, 2026
Merged

auvipy merged 1 commit into
mainfrom
dictcomp

Conversation

@auvipy

@auvipy auvipy commented Sep 30, 2026

Copy link
Copy Markdown
Member

Refactor owned_by assignment to use dictionary comprehension with walrus operator.

Refactor owned_by assignment to use dictionary comprehension with walrus operator.
@auvipy auvipy added this to the 5.7.x milestone Sep 30, 2026
@codecov

codecov Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.85%. Comparing base (f3f6e79) to head (45b3889).
✅ All tests successful. No failed tests found.

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              
Flag Coverage Δ
unittests 89.83% <100.00%> (-0.01%) ⬇️

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

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

@auvipy auvipy modified the milestones: 5.7.x, 5.7.0 Sep 30, 2026
@auvipy
auvipy marked this pull request as ready for review September 30, 2026 08:34
@auvipy
auvipy merged commit 300bb3b into main Sep 30, 2026
441 checks passed
@auvipy
auvipy deleted the dictcomp branch September 30, 2026 08:39
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant