human_join() — anthropic-sdk-python Function Reference
Architecture documentation for the human_join() function in _utils.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 7490d04c_c7f7_7106_1f97_c167a8b2c517["human_join()"] 875202ec_3744_577d_9ec4_ed9fbc6aaf41["_utils.py"] 7490d04c_c7f7_7106_1f97_c167a8b2c517 -->|defined in| 875202ec_3744_577d_9ec4_ed9fbc6aaf41 c21a9edf_5371_2d8f_04bd_5600300ac276["required_args()"] c21a9edf_5371_2d8f_04bd_5600300ac276 -->|calls| 7490d04c_c7f7_7106_1f97_c167a8b2c517 style 7490d04c_c7f7_7106_1f97_c167a8b2c517 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/_utils/_utils.py lines 195–206
def human_join(seq: Sequence[str], *, delim: str = ", ", final: str = "or") -> str:
size = len(seq)
if size == 0:
return ""
if size == 1:
return seq[0]
if size == 2:
return f"{seq[0]} {final} {seq[1]}"
return delim.join(seq[:-1]) + f" {final} {seq[-1]}"
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does human_join() do?
human_join() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_utils/_utils.py.
Where is human_join() defined?
human_join() is defined in src/anthropic/_utils/_utils.py at line 195.
What calls human_join()?
human_join() is called by 1 function(s): required_args.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free