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

Method __get_validators__

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

Source from the content-addressed store, hash-verified

1241 class Slow(str):
1242 @classmethod
1243 def __get_validators__(cls) -> Any:
1244 # Pydantic calls this while it sets up a class. RootModel[Slow] would already be in pydantic's cache by now.
1245 entered.set()
1246 release.wait(10)
1247 yield cls.check
1248
1249 @classmethod
1250 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