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
)
| 600 | raise NotImplementedError() |
| 601 | |
| 602 | def _copy_internals( |
| 603 | self, *, omit_attrs: Tuple[str, ...] = (), **kw: Any |
| 604 | ) -> None: |
| 605 | """Reassign internal elements to be clones of themselves. |
| 606 | |
| 607 | Called during a copy-and-traverse operation on newly |
| 608 | shallow-copied elements to create a deep copy. |
| 609 | |
| 610 | The given clone function should be used, which may be applying |
| 611 | additional transformations to the element (i.e. replacement |
| 612 | traversal, cloned traversal, annotations). |
| 613 | |
| 614 | """ |
| 615 | raise NotImplementedError() |
| 616 | |
| 617 | |
| 618 | _ET = TypeVar("_ET", bound=ExternallyTraversible) |