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

Function CheckParent

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

Source from the content-addressed store, hash-verified

22073
22074
22075def CheckParent(o: typing.Any):
22076 return
22077 if not hasattr(o, "parent") or o.parent is None:
22078 raise ValueError(f"orphaned object {type(o)=}: parent is None")
22079
22080
22081def CheckQuad(q: typing.Any) -> bool:

Callers 15

apn_bboxMethod · 0.85
apn_matrixMethod · 0.85
blendmodeMethod · 0.85
borderMethod · 0.85
clean_contentsMethod · 0.85
colorsMethod · 0.85
delete_responsesMethod · 0.85
file_infoMethod · 0.85
flagsMethod · 0.85
get_fileMethod · 0.85
get_ocMethod · 0.85
get_pixmapMethod · 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…