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
| Name | Type | Description |
|---|---|---|
| input_data | Any | The raw Python object, list, or dictionary to be evaluated and downcast. |
Returns
| Type | Description |
|---|---|
Any | The downcast version of the input, where complex structures like lists and dicts have been processed recursively. |