Home / Function/ test_iterable_of_dictionaries() — anthropic-sdk-python Function Reference

test_iterable_of_dictionaries() — anthropic-sdk-python Function Reference

Architecture documentation for the test_iterable_of_dictionaries() function in test_transform.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  b62e865d_2bce_ea7a_cfd3_ff5a65c22ede["test_iterable_of_dictionaries()"]
  6d065906_49ba_5188_2c4a_08d599bd18f8["test_transform.py"]
  b62e865d_2bce_ea7a_cfd3_ff5a65c22ede -->|defined in| 6d065906_49ba_5188_2c4a_08d599bd18f8
  5eb50e5f_8948_6af4_c03d_f10efd0687eb["transform()"]
  b62e865d_2bce_ea7a_cfd3_ff5a65c22ede -->|calls| 5eb50e5f_8948_6af4_c03d_f10efd0687eb
  style b62e865d_2bce_ea7a_cfd3_ff5a65c22ede fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_transform.py lines 374–388

async def test_iterable_of_dictionaries(use_async: bool) -> None:
    assert await transform({"foo": [{"foo_baz": "bar"}]}, TypedDictIterableUnion, use_async) == {
        "FOO": [{"fooBaz": "bar"}]
    }
    assert cast(Any, await transform({"foo": ({"foo_baz": "bar"},)}, TypedDictIterableUnion, use_async)) == {
        "FOO": [{"fooBaz": "bar"}]
    }

    def my_iter() -> Iterable[Baz8]:
        yield {"foo_baz": "hello"}
        yield {"foo_baz": "world"}

    assert await transform({"foo": my_iter()}, TypedDictIterableUnion, use_async) == {
        "FOO": [{"fooBaz": "hello"}, {"fooBaz": "world"}]
    }

Subdomains

Calls

Frequently Asked Questions

What does test_iterable_of_dictionaries() do?
test_iterable_of_dictionaries() is a function in the anthropic-sdk-python codebase, defined in tests/test_transform.py.
Where is test_iterable_of_dictionaries() defined?
test_iterable_of_dictionaries() is defined in tests/test_transform.py at line 374.
What does test_iterable_of_dictionaries() call?
test_iterable_of_dictionaries() calls 1 function(s): transform.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free