forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure TreeNode doesn't copy in-place (pydata#9482)
* test from pydata#9196 but on TreeNode * move assignment and copying of children to TreeNode constructor * move copy methods over to TreeNode * change copying behaviour to be in line with pydata#9196 * explicitly test that ._copy_subtree works for TreeNode * reimplement ._copy_subtree using recursion * change treenode.py tests to match expected non-in-place behaviour * fix but created in DataTree.__init__ * add type hints for Generic TreeNode back in * update typing of ._copy_node * remove redunant setting of _name
- Loading branch information
1 parent
aeaa082
commit 4323b19
Showing
3 changed files
with
148 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters