MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / validate

Function validate

tests/test_models.py:1255–1259  ·  view source on GitHub ↗
(key: str)

Source from the content-addressed store, hash-verified

1253 results: dict[str, object] = {}
1254
1255 def validate(key: str) -> None:
1256 try:
1257 results[key] = validate_type(type_=Slow, value="x")
1258 except Exception as e:
1259 results[key] = e
1260
1261 threads = {key: threading.Thread(target=validate, args=(key,), daemon=True) for key in ("first", "second")}
1262 try:

Callers

nothing calls this directly

Calls 1

validate_typeFunction · 0.90

Tested by

no test coverage detected