Skip to content

Commit

Permalink
Pre-commit and adjusting typehint for python3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviernogueira committed Dec 5, 2023
1 parent f301d7e commit 93b4c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpublish_opendap/dap_xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
del dtype_dap


def dap_dtype(da: xr.DataArray | xr.Variable) -> type[dap.DAPAtom]:
def dap_dtype(da: Union[xr.DataArray, xr.Variable]) -> type[dap.DAPAtom]:
"""Return a DAP type for the xr.DataArray."""
try:
return dap_dtypes_dict[np.dtype(da.dtype)]
Expand Down

0 comments on commit 93b4c94

Please sign in to comment.