(
self,
year: SupportsIndex | None = None,
month: SupportsIndex | None = None,
day: SupportsIndex | None = None,
)
| 745 | return cls(dt.year, dt.month, dt.day) |
| 746 | |
| 747 | def replace( |
| 748 | self, |
| 749 | year: SupportsIndex | None = None, |
| 750 | month: SupportsIndex | None = None, |
| 751 | day: SupportsIndex | None = None, |
| 752 | ) -> Self: |
| 753 | year = year if year is not None else self.year |
| 754 | month = month if month is not None else self.month |
| 755 | day = day if day is not None else self.day |
| 756 | |
| 757 | return self.__class__(year, month, day) |
no outgoing calls
no test coverage detected