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

Method __new__

src/pptx/util.py:61–63  ·  view source on GitHub ↗
(cls, inches: float)

Source from the content-addressed store, hash-verified

59 """Convenience constructor for length in inches."""
60
61 def __new__(cls, inches: float):
62 emu = int(inches * Length._EMUS_PER_INCH)
63 return Length.__new__(cls, emu)
64
65
66class Centipoints(Length):

Callers

nothing calls this directly

Calls 1

__new__Method · 0.45

Tested by

no test coverage detected