Skip to content

Commit 665cb9b

Browse files
authored
[convertdate] Update to 2.4.1 (#15406)
1 parent 7ef1e06 commit 665cb9b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

stubs/convertdate/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "2.4.*"
1+
version = "2.4.1"
22
upstream_repository = "https://github.com/fitnr/convertdate"

stubs/convertdate/convertdate/__init__.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,23 @@ from . import (
2525
__version__: Final[str]
2626

2727
__all__ = [
28-
"holidays",
2928
"armenian",
3029
"bahai",
3130
"coptic",
32-
"dublin",
3331
"daycount",
32+
"dublin",
3433
"french_republican",
3534
"gregorian",
3635
"hebrew",
36+
"holidays",
3737
"indian_civil",
3838
"islamic",
3939
"iso",
4040
"julian",
4141
"julianday",
4242
"mayan",
43+
"ordinal",
4344
"persian",
4445
"positivist",
45-
"mayan",
46-
"ordinal",
4746
"utils",
4847
]

stubs/convertdate/convertdate/hebrew.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from typing import Final, Literal
2+
from typing_extensions import deprecated
23

34
EPOCH: Final = 347995.5
45
HEBREW_YEAR_OFFSET: Final = 3760
@@ -23,6 +24,8 @@ def year_months(year: int) -> Literal[12, 13]: ...
2324
def delay_1(year: int) -> int: ...
2425
def delay_2(year: int) -> Literal[0, 1, 2]: ...
2526
def year_days(year: int) -> float: ...
27+
def month_length(year: int, month: int) -> Literal[29, 30]: ...
28+
@deprecated("The `month_days` function is deprecated. Use `month_length` instead.")
2629
def month_days(year: int, month: int) -> Literal[29, 30]: ...
2730
def to_jd(year: int, month: int, day: int) -> float: ...
2831
def from_jd(jd: float) -> tuple[int, int, int]: ...

0 commit comments

Comments
 (0)