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

Function validate

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

Source from the content-addressed store, hash-verified

1272 results: dict[str, object] = {}
1273
1274 def validate(key: str) -> None:
1275 try:
1276 results[key] = validate_type(type_=Slow, value="x")
1277 except Exception as e:
1278 results[key] = e
1279
1280 threads = {key: threading.Thread(target=validate, args=(key,), daemon=True) for key in ("first", "second")}
1281 try:

Callers

nothing calls this directly

Calls 1

validate_typeFunction · 0.90

Tested by

no test coverage detected