Commit 3824d7e
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 d024cc1 commit 3824d7e
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
683 | | - | |
| 683 | + | |
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
| |||
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
891 | | - | |
| 891 | + | |
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
| |||
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
947 | | - | |
| 947 | + | |
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
| |||
0 commit comments