treeo.Copy Mixin that adds a .copy() method to the class. 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)