Skip to content

typing: use int for fold - #186

Merged
slashmili merged 1 commit into
slashmili:mainfrom
5j9:fold
Aug 6, 2026
Merged

typing: use int for fold#186
slashmili merged 1 commit into
slashmili:mainfrom
5j9:fold

Conversation

@5j9

@5j9 5j9 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Change the fold parameter/property annotations from Literal[0, 1] to int to match the stdlib/typeshed API. This avoids unnecessary type checker errors when passing fold values between datetime and jdatetime.

https://github.com/python/typeshed/blob/main/stdlib/datetime.pyi#L284

@slashmili

Copy link
Copy Markdown
Owner

@5j9 could you please update the branch with main?

Change the `fold`` parameter/property annotations from `Literal[0, 1]`
to `int` to match the stdlib/typeshed API. This avoids unnecessary type
checker errors when passing fold values between datetime and jdatetime.

https://github.com/python/typeshed/blob/main/stdlib/datetime.pyi#L284
@slashmili
slashmili merged commit 0692d4d into slashmili:main Aug 6, 2026
13 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