MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / transform

Function transform

tests/test_transform.py:27–35  ·  view source on GitHub ↗
(
    data: _T,
    expected_type: object,
    use_async: bool,
)

Source from the content-addressed store, hash-verified

25
26
27async def transform(
28 data: _T,
29 expected_type: object,
30 use_async: bool,
31) -> _T:
32 if use_async:
33 return await _async_transform(data, expected_type=expected_type)
34
35 return _transform(data, expected_type=expected_type)
36
37
38parametrize = pytest.mark.parametrize("use_async", [False, True], ids=["sync", "async"])

Callers 15

test_top_level_aliasFunction · 0.70
test_recursive_typeddictFunction · 0.70
test_list_of_typeddictFunction · 0.70
test_union_of_typeddictFunction · 0.70
test_union_of_listFunction · 0.70
test_iso8601_formatFunction · 0.70
test_union_datetimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected