Skip to main content

downcast_python_input

No overview available.

def downcast_python_input(
input_data: Any
) - > Any

Converts Python data structures into their most specific equivalent types for downstream processing. This function recursively traverses lists and dictionaries to ensure all nested elements are properly cast.

Parameters

NameTypeDescription
input_dataAnyThe raw Python object, list, or dictionary to be evaluated and downcast.

Returns

TypeDescription
AnyThe downcast version of the input, where complex structures like lists and dicts have been processed recursively.