Skip to main content

root_field_py_str

No overview available.

def root_field_py_str(
field: Field,
indent: int
) - > string

Generates a Python-compatible string representation of a root field, typically used for code generation or serialization of data structures.

Parameters

NameTypeDescription
fieldFieldThe field object containing metadata and value information to be converted into a string.
indentintThe number of spaces to use for indentation in the resulting string output.

Returns

TypeDescription
stringThe formatted Python string representing the root field's structure and value.