MCPcopy Create free account
hub / github.com/python-openxml/python-docx / __iter__

Method __iter__

src/docx/styles/styles.py:49–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 raise KeyError("no style with name '%s'" % key)
48
49 def __iter__(self):
50 return (StyleFactory(style) for style in self._element.style_lst)
51
52 def __len__(self):
53 return len(self._element.style_lst)

Callers

nothing calls this directly

Calls 1

StyleFactoryFunction · 0.90

Tested by

no test coverage detected