typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

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

Open anentropic opened this issue 5 months ago • 2 comments

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

anentropic avatar Jun 12 '25 08:06 anentropic

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]

github-actions[bot] avatar Jun 12 '25 08:06 github-actions[bot]

https://github.com/yelp/paasta

their type annotation seems wrong either way...

anentropic avatar Jun 12 '25 08:06 anentropic