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

test_pydantic_mismatched_object_type() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_transform.py lines 310–317

async def test_pydantic_mismatched_object_type(use_async: bool) -> None:
    model = MyModel.construct(foo=MyModel.construct(hello="world"))
    if PYDANTIC_V1:
        params = await transform(model, Any, use_async)
    else:
        with pytest.warns(UserWarning):
            params = await transform(model, Any, use_async)
    assert cast(Any, params) == {"foo": {"hello": "world"}}

Subdomains

Calls

Frequently Asked Questions

What does test_pydantic_mismatched_object_type() do?
test_pydantic_mismatched_object_type() is a function in the anthropic-sdk-python codebase, defined in tests/test_transform.py.
Where is test_pydantic_mismatched_object_type() defined?
test_pydantic_mismatched_object_type() is defined in tests/test_transform.py at line 310.
What does test_pydantic_mismatched_object_type() call?
test_pydantic_mismatched_object_type() 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