MCPcopy Create free account
hub / github.com/scanny/python-pptx / __new__

Method __new__

src/pptx/enum/base.py:42–47  ·  view source on GitHub ↗
(cls, ms_api_value: int, xml_value: str | None, docstr: str)

Source from the content-addressed store, hash-verified

40 xml_value: str | None
41
42 def __new__(cls, ms_api_value: int, xml_value: str | None, docstr: str):
43 self = int.__new__(cls, ms_api_value)
44 self._value_ = ms_api_value
45 self.xml_value = xml_value
46 self.__doc__ = docstr.strip()
47 return self
48
49 def __str__(self):
50 """The symbolic name and string value of this member, e.g. 'MIDDLE (3)'."""

Callers

nothing calls this directly

Calls 1

__new__Method · 0.45

Tested by

no test coverage detected