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

Method __new__

src/pptx/util.py:92–94  ·  view source on GitHub ↗
(cls, mm: float)

Source from the content-addressed store, hash-verified

90 """Convenience constructor for length in millimeters."""
91
92 def __new__(cls, mm: float):
93 emu = int(mm * Length._EMUS_PER_MM)
94 return Length.__new__(cls, emu)
95
96
97class Pt(Length):

Callers

nothing calls this directly

Calls 1

__new__Method · 0.45

Tested by

no test coverage detected