Skip to content

[croniter] croniter.pyi: get_next with a ret_type passed should return that type #14267

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anentropic
Copy link
Contributor

I think this was maybe a typo?

Currently I am getting spurious errors from Pyright and I think it's due to this mismatch:
Screenshot 2025-06-12 at 09 33 40

`get_next` with a `ret_type` passed should return that type
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]
+ paasta_tools/cli/cmds/validate.py:879: error: List comprehension has incompatible type List[datetime]; expected List[str]  [misc]

@anentropic
Copy link
Contributor Author

https://github.com/yelp/paasta

their type annotation seems wrong either way...

@anentropic anentropic changed the title croniter.pyi: get_next with a ret_type passed should return that type [croniter] croniter.pyi: get_next with a ret_type passed should return that type Jun 12, 2025
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