assert_empty_iter() — anthropic-sdk-python Function Reference
Architecture documentation for the assert_empty_iter() function in test_jsonl.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 0e011b3c_8b32_66cd_d680_a4b5ffef0fde["assert_empty_iter()"] 7e6f1ef1_47fa_dc28_4bd9_c457af975269["test_jsonl.py"] 0e011b3c_8b32_66cd_d680_a4b5ffef0fde -->|defined in| 7e6f1ef1_47fa_dc28_4bd9_c457af975269 a1a63b55_d4e5_c191_2c0c_ccd06f05d464["test_basic()"] a1a63b55_d4e5_c191_2c0c_ccd06f05d464 -->|calls| 0e011b3c_8b32_66cd_d680_a4b5ffef0fde e921b3a3_39cd_cd70_1309_9d685c86876e["iter_next()"] 0e011b3c_8b32_66cd_d680_a4b5ffef0fde -->|calls| e921b3a3_39cd_cd70_1309_9d685c86876e style 0e011b3c_8b32_66cd_d680_a4b5ffef0fde fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/decoders/test_jsonl.py lines 74–76
async def assert_empty_iter(decoder: JSONLDecoder[Any] | AsyncJSONLDecoder[Any]) -> None:
with pytest.raises((StopAsyncIteration, RuntimeError)):
await iter_next(decoder)
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does assert_empty_iter() do?
assert_empty_iter() is a function in the anthropic-sdk-python codebase, defined in tests/decoders/test_jsonl.py.
Where is assert_empty_iter() defined?
assert_empty_iter() is defined in tests/decoders/test_jsonl.py at line 74.
What does assert_empty_iter() call?
assert_empty_iter() calls 1 function(s): iter_next.
What calls assert_empty_iter()?
assert_empty_iter() is called by 1 function(s): test_basic.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free