From 6572352a4cb7c43957191352f9f2660b19c9a0bd Mon Sep 17 00:00:00 2001 From: donbarbos Date: Mon, 9 Feb 2026 22:15:26 +0400 Subject: [PATCH] [convertdate] Update to 2.4.1 Closes: #15397 (the last one) Release: https://pypi.org/project/convertdate/2.4.1/ Diff: https://github.com/fitnr/convertdate/compare/v2.4.0...v2.4.1 --- stubs/convertdate/METADATA.toml | 2 +- stubs/convertdate/convertdate/__init__.pyi | 7 +++---- stubs/convertdate/convertdate/hebrew.pyi | 3 +++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/stubs/convertdate/METADATA.toml b/stubs/convertdate/METADATA.toml index bc4079a14a27..f8f016bb7ffb 100644 --- a/stubs/convertdate/METADATA.toml +++ b/stubs/convertdate/METADATA.toml @@ -1,2 +1,2 @@ -version = "2.4.*" +version = "2.4.1" upstream_repository = "https://github.com/fitnr/convertdate" diff --git a/stubs/convertdate/convertdate/__init__.pyi b/stubs/convertdate/convertdate/__init__.pyi index 340d2b00a06b..b33581cac340 100644 --- a/stubs/convertdate/convertdate/__init__.pyi +++ b/stubs/convertdate/convertdate/__init__.pyi @@ -25,24 +25,23 @@ from . import ( __version__: Final[str] __all__ = [ - "holidays", "armenian", "bahai", "coptic", - "dublin", "daycount", + "dublin", "french_republican", "gregorian", "hebrew", + "holidays", "indian_civil", "islamic", "iso", "julian", "julianday", "mayan", + "ordinal", "persian", "positivist", - "mayan", - "ordinal", "utils", ] diff --git a/stubs/convertdate/convertdate/hebrew.pyi b/stubs/convertdate/convertdate/hebrew.pyi index c2d1fda2dd2b..dfe5544d185d 100644 --- a/stubs/convertdate/convertdate/hebrew.pyi +++ b/stubs/convertdate/convertdate/hebrew.pyi @@ -1,4 +1,5 @@ from typing import Final, Literal +from typing_extensions import deprecated EPOCH: Final = 347995.5 HEBREW_YEAR_OFFSET: Final = 3760 @@ -23,6 +24,8 @@ def year_months(year: int) -> Literal[12, 13]: ... def delay_1(year: int) -> int: ... def delay_2(year: int) -> Literal[0, 1, 2]: ... def year_days(year: int) -> float: ... +def month_length(year: int, month: int) -> Literal[29, 30]: ... +@deprecated("The `month_days` function is deprecated. Use `month_length` instead.") def month_days(year: int, month: int) -> Literal[29, 30]: ... def to_jd(year: int, month: int, day: int) -> float: ... def from_jd(jd: float) -> tuple[int, int, int]: ...