11"""Dataset module for functions related to an xarray.Dataset."""
2+
23from __future__ import annotations
34
45import os
@@ -63,7 +64,7 @@ def open_dataset(
6364 data_var: Optional[str], optional
6465 The key of the non-bounds data variable to keep in the Dataset,
6566 alongside any existing bounds data variables, by default None.
66- add_bounds: List[CFAxisKey] | None | bool
67+ add_bounds: List[CFAxisKey] | None
6768 List of CF axes to try to add bounds for (if missing), by default
6869 ["X", "Y"]. Set to None to not add any missing bounds. Please note that
6970 bounds are required for many xCDAT features.
@@ -152,7 +153,7 @@ def open_mfdataset(
152153 If concatenation along more than one dimension is desired, then
153154 ``paths`` must be a nested list-of-lists (see [2]_
154155 ``xarray.combine_nested`` for details).
155- add_bounds: List[CFAxisKey] | None | bool
156+ add_bounds: List[CFAxisKey] | None
156157 List of CF axes to try to add bounds for (if missing), by default
157158 ["X", "Y"]. Set to None to not add any missing bounds. Please note that
158159 bounds are required for many xCDAT features.
@@ -464,7 +465,7 @@ def _postprocess_dataset(
464465 dataset : xr .Dataset ,
465466 data_var : Optional [str ] = None ,
466467 center_times : bool = False ,
467- add_bounds : List [CFAxisKey ] | None | bool = ["X" , "Y" ],
468+ add_bounds : List [CFAxisKey ] | None = ["X" , "Y" ],
468469 lon_orient : Optional [Tuple [float , float ]] = None ,
469470) -> xr .Dataset :
470471 """Post-processes a Dataset object.
@@ -479,7 +480,7 @@ def _postprocess_dataset(
479480 If True, center time coordinates using the midpoint between its upper
480481 and lower bounds. Otherwise, use the provided time coordinates, by
481482 default False.
482- add_bounds: List[CFAxisKey] | None | bool
483+ add_bounds: List[CFAxisKey] | None
483484 List of CF axes to try to add bounds for (if missing), default
484485 ["X", "Y"]. Set to None to not add any missing bounds.
485486
0 commit comments