MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _copy_internals

Method _copy_internals

lib/sqlalchemy/sql/visitors.py:609–622  ·  view source on GitHub ↗

Reassign internal elements to be clones of themselves. Called during a copy-and-traverse operation on newly shallow-copied elements to create a deep copy. The given clone function should be used, which may be applying additional transformations to the element (i.e.

(
        self, *, omit_attrs: Tuple[str, ...] = (), **kw: Any
    )

Source from the content-addressed store, hash-verified

607 raise NotImplementedError()
608
609 def _copy_internals(
610 self, *, omit_attrs: Tuple[str, ...] = (), **kw: Any
611 ) -> None:
612 """Reassign internal elements to be clones of themselves.
613
614 Called during a copy-and-traverse operation on newly
615 shallow-copied elements to create a deep copy.
616
617 The given clone function should be used, which may be applying
618 additional transformations to the element (i.e. replacement
619 traversal, cloned traversal, annotations).
620
621 """
622 raise NotImplementedError()
623
624
625_ET = TypeVar("_ET", bound=ExternallyTraversible)

Callers 1

cloneFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected