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

Method base_style

src/docx/styles/style.py:172–178  ·  view source on GitHub ↗

Style object this style inherits from or |None| if this style is not based on another style.

(self)

Source from the content-addressed store, hash-verified

170
171 @property
172 def base_style(self):
173 """Style object this style inherits from or |None| if this style is not based on
174 another style."""
175 base_style = self._element.base_style
176 if base_style is None:
177 return None
178 return StyleFactory(base_style)
179
180 @base_style.setter
181 def base_style(self, style):

Callers

nothing calls this directly

Calls 1

StyleFactoryFunction · 0.85

Tested by

no test coverage detected