8000 fix(crontab): resolve constructor type conflicts by pcrock-thmdo · Pull Request #9551 · celery/celery · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(crontab): resolve constructor type conflicts #9551

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 5 commits into from
Feb 11, 2025

Conversation

pcrock-thmdo
Copy link
Contributor

Description

The crontab class constructor parameter types conflict with actual functionality. The parameter cron spec values are marked as str, but can actually be int | str | Iterable[int].

This creates a type alias called Cronspec to represent the correct types, and then uses it to fix typing inconsistencies.

Copy link
codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.24%. Comparing base (cc9e96d) to head (a2aec83).
Report is 57 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9551      +/-   ##
==========================================
- Coverage   78.24%   78.24%   -0.01%     
==========================================
  Files         153      153              
  Lines       19040    19040              
  Branches     2520     2520              
==========================================
- Hits        14898    14897       -1     
  Misses       3856     3856              
- Partials      286      287       +1     
Flag Coverage Δ
unittests 78.21% <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 Sentry.
📢 Have feedback on the report? Share it here.

@auvipy auvipy self-requested a review February 8, 2025 04:10
@pcrock-thmdo pcrock-thmdo requested a review from auvipy February 11, 2025 07:20
@auvipy auvipy added this to the 5.5.0 milestone Feb 11, 2025
@auvipy auvipy merged commit 3257487 into celery:main Feb 11, 2025
69 of 70 checks passed
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
0