test_function_without_type_hints() — anthropic-sdk-python Function Reference
Architecture documentation for the test_function_without_type_hints() function in test_functions.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 43d49828_de5f_6bd4_c39d_4a1d26cc2873["test_function_without_type_hints()"] e25ad18d_e1f6_726f_20bc_ac8e568d4e63["TestFunctionTool"] 43d49828_de5f_6bd4_c39d_4a1d26cc2873 -->|defined in| e25ad18d_e1f6_726f_20bc_ac8e568d4e63 style 43d49828_de5f_6bd4_c39d_4a1d26cc2873 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/lib/tools/test_functions.py lines 199–214
def test_function_without_type_hints(self) -> None:
def no_types(x, y=10): # pyright: ignore[reportUnknownParameterType, reportMissingParameterType]
return x + y # pyright: ignore[reportUnknownVariableType]
function_tool = beta_tool(no_types) # type: ignore
# Should still create a schema, though less precise (uses Any type)
assert function_tool.input_schema == {
"additionalProperties": False,
"type": "object",
"properties": {
"x": {"title": "X"}, # Any type gets title but no type
"y": {"title": "Y", "default": 10},
},
"required": ["x"],
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_function_without_type_hints() do?
test_function_without_type_hints() is a function in the anthropic-sdk-python codebase, defined in tests/lib/tools/test_functions.py.
Where is test_function_without_type_hints() defined?
test_function_without_type_hints() is defined in tests/lib/tools/test_functions.py at line 199.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free