Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jdatetime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ def __init__(
microsecond: int | None = None,
tzinfo: tzinfo | None = None,
*,
fold: typing.Literal[0, 1] = 0,
fold: int = 0,
**kwargs,
):
date.__init__(self, year, month, day, **kwargs)
Expand Down Expand Up @@ -888,7 +888,7 @@ def tzinfo(self) -> py_datetime.tzinfo | None:
return self.__time.tzinfo

@property
def fold(self) -> typing.Literal[0, 1]:
def fold(self) -> int:
return self._fold

@staticmethod
Expand Down Expand Up @@ -944,7 +944,7 @@ def replace(
second: int | None = None,
microsecond: int | None = None,
tzinfo: py_datetime.tzinfo | None = True,
fold: typing.Literal[0, 1] | None = None,
fold: int | None = None,
) -> datetime:
"""Return datetime with new specified fields."""
t_year = self.year
Expand Down
Loading