Skip to content

Commit

Permalink
Update times.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Jul 9, 2024
1 parent 36831ce commit 0ec9be7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions xarray/coding/times.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,20 @@ def _cast_to_dtype_if_safe(num: np.ndarray, dtype: np.dtype) -> np.ndarray:
return cast_num


@overload
def encode_cf_datetime(
dates: chunkedduckarray,
units: str | None = None,
calendar: str | None = None,
dtype: np.dtype | None = None,
) -> tuple[chunkedduckarray, str, str]: ...
@overload
def encode_cf_datetime(
dates: duckarray,
units: str | None = None,
calendar: str | None = None,
dtype: np.dtype | None = None,
) -> tuple[duckarray, str, str]: ...
def encode_cf_datetime(
dates: duckarray | chunkedduckarray,
units: str | None = None,
Expand Down

0 comments on commit 0ec9be7

Please sign in to comment.