MCPcopy Create free account
hub / github.com/datapane/datapane / convert_to_block

Function convert_to_block

python-client/src/datapane/blocks/wrappers.py:20–23  ·  view source on GitHub ↗
(x: object)

Source from the content-addressed store, hash-verified

18
19@multimethod
20def convert_to_block(x: object) -> DataBlock:
21 raise DPClientError(
22 f"{type(x)} not supported directly, please pass into in the appropriate dp object (including dp.Attachment if want to upload as a pickle)"
23 )
24
25
26# NOTE - this is currently disabled to avoid confusing users when they

Callers 1

wrap_blockFunction · 0.85

Calls 1

DPClientErrorClass · 0.90

Tested by

no test coverage detected