(
start: _TimestampNoneT1, end: _TimestampNoneT2, normalize: bool
)
| 2888 | |
| 2889 | |
| 2890 | def _maybe_normalize_endpoints( |
| 2891 | start: _TimestampNoneT1, end: _TimestampNoneT2, normalize: bool |
| 2892 | ) -> tuple[_TimestampNoneT1, _TimestampNoneT2]: |
| 2893 | if normalize: |
| 2894 | if start is not None: |
| 2895 | start = start.normalize() |
| 2896 | |
| 2897 | if end is not None: |
| 2898 | end = end.normalize() |
| 2899 | |
| 2900 | return start, end |
| 2901 | |
| 2902 | |
| 2903 | def _maybe_localize_point( |
no test coverage detected