nilspodlib.utils.inplace_or_copy#

nilspodlib.utils.inplace_or_copy(obj: T, inplace: bool) T[source]#

Either create a deepcopy of the object or return it based on the value of inplace.