Skip to content

Update croniter to 6.0.0 #13548

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
Apr 11, 2025
Merged

Update croniter to 6.0.0 #13548

merged 5 commits into from
Apr 11, 2025

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Feb 26, 2025

Make class croniter generic over ret_type and tighten return types for some methods.

Closes: #13260

srittau and others added 3 commits February 26, 2025 18:43
Make class `croniter` generic over `ret_type` and tighten
return types for some methods.

This comment has been minimized.

@srittau
Copy link
Collaborator Author

srittau commented Feb 26, 2025

Primer hit is a true positive. The error had been hidden before, since get_next() yielded Any. (But that's only a problem in the annotations. The code only uses the return value for printing.)

This comment has been minimized.

Copy link
Collaborator

@Avasam Avasam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an in-depth review, but this looks good to me.
You do have a merge conflict though.

Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

paasta (https://github.com/yelp/paasta)
+ paasta_tools/cli/cmds/validate.py:879: error: List comprehension has incompatible type List[float]; expected List[str]  [misc]

@srittau srittau merged commit 4a89c1b into python:main Apr 11, 2025
43 checks passed
@srittau srittau deleted the croniter-6.0.0 branch April 11, 2025 00:10
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.

None yet

2 participants