diff --git a/xarray/core/duck_array_ops.py b/xarray/core/duck_array_ops.py index 4e6b066591f..204579757e1 100644 --- a/xarray/core/duck_array_ops.py +++ b/xarray/core/duck_array_ops.py @@ -10,9 +10,9 @@ import datetime import inspect import warnings +from collections.abc import Callable from functools import partial from importlib import import_module -from typing import Callable import numpy as np import pandas as pd