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

Method __new__

src/pptx/enum/base.py:22–26  ·  view source on GitHub ↗
(cls, ms_api_value: int, docstr: str)

Source from the content-addressed store, hash-verified

20 """
21
22 def __new__(cls, ms_api_value: int, docstr: str):
23 self = int.__new__(cls, ms_api_value)
24 self._value_ = ms_api_value
25 self.__doc__ = docstr.strip()
26 return self
27
28 def __str__(self):
29 """The symbolic name and string value of this member, e.g. 'MIDDLE (3)'."""

Callers 1

__new__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected