Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
test_discriminated_union_serializer
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_discriminated_union_serializer
Function · 0.68