treex.Copy
Mixin that adds a .copy() method to the class.
Source code in treeo/mixins.py
class Copy:
"""
Mixin that adds a `.copy()` method to the class.
"""
def copy(self: A) -> A:
"""
`copy` is a wrapper over `treeo.copy` that passes `self` as the first argument.
"""
return tree_m.copy(self)
copy(self)
copy is a wrapper over treeo.copy that passes self as the first argument.
Source code in treeo/mixins.py
def copy(self: A) -> A:
"""
`copy` is a wrapper over `treeo.copy` that passes `self` as the first argument.
"""
return tree_m.copy(self)