Commit 3703a0a
committed
typing: use int for fold
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#L2841 parent b363288 commit 3703a0a
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
| 688 | + | |
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
896 | | - | |
| 896 | + | |
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
| 952 | + | |
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| |||
0 commit comments