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

Method __new__

src/pptx/util.py:77–79  ·  view source on GitHub ↗
(cls, cm: float)

Source from the content-addressed store, hash-verified

75 """Convenience constructor for length in centimeters."""
76
77 def __new__(cls, cm: float):
78 emu = int(cm * Length._EMUS_PER_CM)
79 return Length.__new__(cls, emu)
80
81
82class Emu(Length):

Callers 6

__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected