MCPcopy
hub / github.com/pydantic/pydantic / validate1

Method validate1

tests/test_deprecated.py:589–594  ·  view source on GitHub ↗
(cls, v, i)

Source from the content-addressed store, hash-verified

587
588 @classmethod
589 def validate1(cls, v, i):
590 print(v)
591
592 if v.year < 2000:
593 raise ValueError('Invalid year')
594 return v
595
596 @classmethod
597 def validate2(cls, v, i):

Callers

nothing calls this directly

Calls 1

printFunction · 0.85

Tested by

no test coverage detected