is_mapping() — anthropic-sdk-python Function Reference
Architecture documentation for the is_mapping() function in _utils.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD b41b21ba_47c5_2c24_a6d6_d106399b3c57["is_mapping()"] 875202ec_3744_577d_9ec4_ed9fbc6aaf41["_utils.py"] b41b21ba_47c5_2c24_a6d6_d106399b3c57 -->|defined in| 875202ec_3744_577d_9ec4_ed9fbc6aaf41 76cf4787_3c42_ee68_9967_3160c7a1aa0d["_transform_recursive()"] 76cf4787_3c42_ee68_9967_3160c7a1aa0d -->|calls| b41b21ba_47c5_2c24_a6d6_d106399b3c57 6db2b331_e127_3cb2_32c8_72a1730d0041["_async_transform_recursive()"] 6db2b331_e127_3cb2_32c8_72a1730d0041 -->|calls| b41b21ba_47c5_2c24_a6d6_d106399b3c57 b90f6f71_3877_486e_5221_98365f49838c["deepcopy_minimal()"] b90f6f71_3877_486e_5221_98365f49838c -->|calls| b41b21ba_47c5_2c24_a6d6_d106399b3c57 5c6a9625_958e_e930_2eea_336713dc1ff7["strip_not_given()"] 5c6a9625_958e_e930_2eea_336713dc1ff7 -->|calls| b41b21ba_47c5_2c24_a6d6_d106399b3c57 1033ac62_5341_be31_0a72_cd091ba0d38f["json_safe()"] 1033ac62_5341_be31_0a72_cd091ba0d38f -->|calls| b41b21ba_47c5_2c24_a6d6_d106399b3c57 style b41b21ba_47c5_2c24_a6d6_d106399b3c57 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/_utils/_utils.py lines 159–160
def is_mapping(obj: object) -> TypeGuard[Mapping[str, object]]:
return isinstance(obj, Mapping)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does is_mapping() do?
is_mapping() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_utils/_utils.py.
Where is is_mapping() defined?
is_mapping() is defined in src/anthropic/_utils/_utils.py at line 159.
What calls is_mapping()?
is_mapping() is called by 5 function(s): _async_transform_recursive, _transform_recursive, deepcopy_minimal, json_safe, strip_not_given.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free