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

Method new

src/docx/oxml/coreprops.py:48–52  ·  view source on GitHub ↗

Return a new ` ` element.

(cls)

Source from the content-addressed store, hash-verified

46
47 @classmethod
48 def new(cls) -> CT_CoreProperties:
49 """Return a new `<cp:coreProperties>` element."""
50 xml = cls._coreProperties_tmpl
51 coreProperties = cast(CT_CoreProperties, parse_xml(xml))
52 return coreProperties
53
54 @property
55 def author_text(self) -> str:

Callers

nothing calls this directly

Calls 1

parse_xmlFunction · 0.90

Tested by

no test coverage detected