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

Function asString

frontend/src/utils/python-poet/poet.ts:20–25  ·  view source on GitHub ↗
(value: string | PythonCode)

Source from the content-addressed store, hash-verified

18}
19
20function asString(value: string | PythonCode): string {
21 if (typeof value === "string") {
22 return value;
23 }
24 return value.toCode();
25}
26
27export class Variable implements PythonCode {
28 name: string;

Callers 4

asStringMethod · 0.85
toStringMethod · 0.85
toCodeMethod · 0.85
toCodeMethod · 0.85

Calls 1

toCodeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…