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

is_iterable() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6136e8f7_248c_4449_ec8e_4711c4295b45["is_iterable()"]
  875202ec_3744_577d_9ec4_ed9fbc6aaf41["_utils.py"]
  6136e8f7_248c_4449_ec8e_4711c4295b45 -->|defined in| 875202ec_3744_577d_9ec4_ed9fbc6aaf41
  76cf4787_3c42_ee68_9967_3160c7a1aa0d["_transform_recursive()"]
  76cf4787_3c42_ee68_9967_3160c7a1aa0d -->|calls| 6136e8f7_248c_4449_ec8e_4711c4295b45
  6db2b331_e127_3cb2_32c8_72a1730d0041["_async_transform_recursive()"]
  6db2b331_e127_3cb2_32c8_72a1730d0041 -->|calls| 6136e8f7_248c_4449_ec8e_4711c4295b45
  1033ac62_5341_be31_0a72_cd091ba0d38f["json_safe()"]
  1033ac62_5341_be31_0a72_cd091ba0d38f -->|calls| 6136e8f7_248c_4449_ec8e_4711c4295b45
  style 6136e8f7_248c_4449_ec8e_4711c4295b45 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/_utils/_utils.py lines 175–176

def is_iterable(obj: object) -> TypeGuard[Iterable[object]]:
    return isinstance(obj, Iterable)

Subdomains

Frequently Asked Questions

What does is_iterable() do?
is_iterable() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_utils/_utils.py.
Where is is_iterable() defined?
is_iterable() is defined in src/anthropic/_utils/_utils.py at line 175.
What calls is_iterable()?
is_iterable() is called by 3 function(s): _async_transform_recursive, _transform_recursive, json_safe.

Analyze Your Own Codebase

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

Try Supermodel Free