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

Function CheckMarkerArg

src/__init__.py:22051–22060  ·  view source on GitHub ↗
(quads: typing.Any)

Source from the content-addressed store, hash-verified

22049
22050
22051def CheckMarkerArg(quads: typing.Any) -> tuple:
22052 if CheckRect(quads):
22053 r = Rect(quads)
22054 return (r.quad,)
22055 if CheckQuad(quads):
22056 return (quads,)
22057 for q in quads:
22058 if not (CheckRect(q) or CheckQuad(q)):
22059 raise ValueError("bad quads entry")
22060 return quads
22061
22062
22063def CheckMorph(o: typing.Any) -> bool:

Callers 4

add_highlight_annotMethod · 0.85
add_squiggly_annotMethod · 0.85
add_strikeout_annotMethod · 0.85
add_underline_annotMethod · 0.85

Calls 3

CheckRectFunction · 0.85
RectClass · 0.85
CheckQuadFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…