Skip to content

Commit

Permalink
revert some
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Aug 13, 2024
1 parent 3e4d587 commit 26ebc0c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions xarray/core/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from collections import defaultdict
from collections.abc import Hashable, Iterable, Mapping, Sequence, Set
from typing import TYPE_CHECKING, Any, NamedTuple
from typing import TYPE_CHECKING, Any, NamedTuple, Union

import pandas as pd

Expand All @@ -24,18 +24,18 @@
from xarray.core.dataset import Dataset
from xarray.core.types import CombineAttrsOptions, CompatOptions, JoinOptions

DimsLike = Hashable | Sequence[Hashable]
DimsLike = Union[Hashable, Sequence[Hashable]] # noqa
ArrayLike = Any
VariableLike = (
ArrayLike
| tuple[DimsLike, ArrayLike]
| tuple[DimsLike, ArrayLike, Mapping]
| tuple[DimsLike, ArrayLike, Mapping, Mapping]
)
XarrayValue = DataArray | Variable | VariableLike
DatasetLike = Dataset | Coordinates | Mapping[Any, XarrayValue]
CoercibleValue = XarrayValue | pd.Series | pd.DataFrame
CoercibleMapping = Dataset | Mapping[Any, CoercibleValue]
VariableLike = Union[ # noqa
ArrayLike,
tuple[DimsLike, ArrayLike],
tuple[DimsLike, ArrayLike, Mapping],
tuple[DimsLike, ArrayLike, Mapping, Mapping],
]
XarrayValue = Union[DataArray, Variable, VariableLike] # noqa
DatasetLike = Union[Dataset, Coordinates, Mapping[Any, XarrayValue]] # noqa
CoercibleValue = Union[XarrayValue, pd.Series, pd.DataFrame] # noqa
CoercibleMapping = Union[Dataset, Mapping[Any, CoercibleValue]] # noqa


PANDAS_TYPES = (pd.Series, pd.DataFrame)
Expand Down

0 comments on commit 26ebc0c

Please sign in to comment.