Skip to content

typing: use int for fold#186

Open
5j9 wants to merge 1 commit into
slashmili:mainfrom
5j9:fold
Open

typing: use int for fold#186
5j9 wants to merge 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

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
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