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

Function part_class_selector

src/docx/__init__.py:37–40  ·  view source on GitHub ↗
(content_type: str, reltype: str)

Source from the content-addressed store, hash-verified

35
36
37def part_class_selector(content_type: str, reltype: str) -> Type[Part] | None:
38 if reltype == RT.IMAGE:
39 return ImagePart
40 return None
41
42
43PartFactory.part_class_selector = part_class_selector

Callers 1

__new__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…