MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / CheckMorph

Function CheckMorph

src/__init__.py:22063–22072  ·  view source on GitHub ↗
(o: typing.Any)

Source from the content-addressed store, hash-verified

22061
22062
22063def CheckMorph(o: typing.Any) -> bool:
22064 if not bool(o):
22065 return False
22066 if not (type(o) in (list, tuple) and len(o) == 2):
22067 raise ValueError("morph must be a sequence of length 2")
22068 if not (len(o[0]) == 2 and len(o[1]) == 6):
22069 raise ValueError("invalid morph param 0")
22070 if not o[1][4] == o[1][5] == 0:
22071 raise ValueError("invalid morph param 1")
22072 return True
22073
22074
22075def CheckParent(o: typing.Any):

Callers 6

insert_textMethod · 0.85
insert_textboxMethod · 0.85
finishMethod · 0.85
insert_textMethod · 0.85
insert_textboxMethod · 0.85
finishMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…