Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTree should not be "Generic" #9445

Merged
merged 3 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions xarray/core/datatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Mapping,
)
from html import escape
from typing import TYPE_CHECKING, Any, Generic, Literal, NoReturn, Union, overload
from typing import TYPE_CHECKING, Any, Literal, NoReturn, Union, overload

from xarray.core import utils
from xarray.core.alignment import align
Expand All @@ -37,7 +37,7 @@
from xarray.core.indexes import Index, Indexes
from xarray.core.merge import dataset_update_method
from xarray.core.options import OPTIONS as XR_OPTS
from xarray.core.treenode import NamedNode, NodePath, Tree
from xarray.core.treenode import NamedNode, NodePath
from xarray.core.utils import (
Default,
Frozen,
Expand Down Expand Up @@ -369,8 +369,7 @@ class DataTree(
MappedDataWithCoords,
DataTreeArithmeticMixin,
TreeAttrAccessMixin,
Generic[Tree],
Mapping,
Mapping[str, "DataArray | DataTree"],
):
"""
A tree-like hierarchical collection of xarray objects.
Expand Down
Loading
Loading