mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 12:35:49 +08:00
[convertdate] Update to 2.4.1 (#15406)
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
version = "2.4.*"
|
||||
version = "2.4.1"
|
||||
upstream_repository = "https://github.com/fitnr/convertdate"
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user