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

Method internal2ui

src/docx/styles/__init__.py:37–40  ·  view source on GitHub ↗

Return the user interface style name corresponding to `internal_style_name`, such as 'Heading 1' for 'heading 1'.

(cls, internal_style_name: str)

Source from the content-addressed store, hash-verified

35
36 @classmethod
37 def internal2ui(cls, internal_style_name: str) -> str:
38 """Return the user interface style name corresponding to `internal_style_name`,
39 such as 'Heading 1' for 'heading 1'."""
40 return cls.ui_style_names.get(internal_style_name, internal_style_name)

Callers 2

nameMethod · 0.80
nameMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected