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

Method __get_validators__

tests/test_models.py:1262–1266  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

1260 class Slow(str):
1261 @classmethod
1262 def __get_validators__(cls) -> Any:
1263 # Pydantic calls this while it sets up a class. RootModel[Slow] would already be in pydantic's cache by now.
1264 entered.set()
1265 release.wait(10)
1266 yield cls.check
1267
1268 @classmethod
1269 def check(cls, value: str) -> "Slow":

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected