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

Function to_list

src/table.py:376–385  ·  view source on GitHub ↗
(collection)

Source from the content-addressed store, hash-verified

374
375
376def to_list(collection) -> list:
377 if isinstance(collection, list):
378 return collection
379 elif isinstance(collection, Sequence):
380 return list(collection)
381 elif hasattr(collection, "to_dict"):
382 res = collection.to_dict("records") # pragma: nocover
383 return res
384 else:
385 return list(collection)
386
387
388class TextMap:

Callers 1

extract_textFunction · 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…