MCPcopy Create free account
hub / github.com/binance/binance-connector-python / make_serializable

Function make_serializable

common/src/binance_common/utils.py:141–160  ·  view source on GitHub ↗

Converts a value to a serializable format. Args: val: The value to convert. Returns: The converted value, which can be a dictionary, list, or the original value if it is already serializable.

(val)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

test_list_of_objectsMethod · 0.90
test_booleanMethod · 0.90
test_floatMethod · 0.90
test_enumMethod · 0.90
test_object_with_dictMethod · 0.90
test_int_and_stringMethod · 0.90
test_list_of_mixedMethod · 0.90
transform_queryFunction · 0.85
encoded_stringFunction · 0.85
ws_api_payloadFunction · 0.85

Calls 1

transform_queryFunction · 0.85

Tested by 7

test_list_of_objectsMethod · 0.72
test_booleanMethod · 0.72
test_floatMethod · 0.72
test_enumMethod · 0.72
test_object_with_dictMethod · 0.72
test_int_and_stringMethod · 0.72
test_list_of_mixedMethod · 0.72