MCPcopy
hub / github.com/pydantic/pydantic / BarId

Class BarId

tests/test_discriminated_union.py:2172–2173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2170
2171 @dataclass
2172 class BarId:
2173 _id: int
2174
2175 FooOrBarId = Annotated[
2176 Annotated[FooId, PlainSerializer(lambda v: {'tag': 'foo', '_id': v._id}), Tag('foo')]

Callers 1

Calls

no outgoing calls

Tested by 1