MCPcopy
hub / github.com/marimo-team/marimo / is_primitive

Function is_primitive

marimo/_runtime/primitives.py:44–48  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

42
43
44def is_primitive(value: Any) -> bool:
45 # Tuples don't allow for write access
46 if isinstance(value, tuple):
47 return all(map(is_primitive, value))
48 return isinstance(value, PRIMITIVES)
49
50
51def is_primitive_type(value: type) -> bool:

Callers 6

is_memoizableMethod · 0.90
recurse_containerFunction · 0.90
reducer_overrideMethod · 0.90
is_data_primitiveFunction · 0.70
recurse_containerFunction · 0.70

Calls 1

mapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…