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

Method _new

src/docx/opc/parts/coreprops.py:44–48  ·  view source on GitHub ↗
(cls, package: OpcPackage)

Source from the content-addressed store, hash-verified

42
43 @classmethod
44 def _new(cls, package: OpcPackage) -> CorePropertiesPart:
45 partname = PackURI("/docProps/core.xml")
46 content_type = CT.OPC_CORE_PROPERTIES
47 coreProperties = CT_CoreProperties.new()
48 return CorePropertiesPart(partname, content_type, coreProperties, package)

Callers 1

defaultMethod · 0.80

Calls 3

PackURIClass · 0.90
CorePropertiesPartClass · 0.85
newMethod · 0.45

Tested by

no test coverage detected