MCPcopy Index your code
hub / github.com/python-openxml/python-docx / _insert_child

Method _insert_child

src/docx/oxml/xmlchemy.py:319–321  ·  view source on GitHub ↗
(obj: BaseOxmlElement, child: BaseOxmlElement)

Source from the content-addressed store, hash-verified

317 """Add an ``_insert_x()`` method to the element class for this child element."""
318
319 def _insert_child(obj: BaseOxmlElement, child: BaseOxmlElement):
320 obj.insert_element_before(child, *self._successors)
321 return child
322
323 _insert_child.__doc__ = (
324 "Return the passed ``<%s>`` element after inserting it as a chil"

Callers

nothing calls this directly

Calls 1

insert_element_beforeMethod · 0.80

Tested by

no test coverage detected