A field's schema per variant; a variant missing from schemas
leaves the field out of that variant. A is the field's Type in the
default variant (the annotation a class field must have).
Attributes#
| Attribute | Type | Description |
|---|---|---|
schemas | Mapping[str, AnyCodec] |
Functions#
__init__#
__init__(schemas) -> None| Parameter | Type | Description |
|---|---|---|
schemas | Mapping[str, AnyCodec] |
pipe#
pipe[B](f) -> Bf(self): S.Int.pipe(model.field_only(["select"])) and so on.
| Parameter | Type | Description |
|---|---|---|
f | Callable[[Field[A_co]], B] |
Returns B
def pipe[B](self, f: Callable[[Field[A_co]], B], /) -> B:
"""``f(self)``: ``S.Int.pipe(model.field_only(["select"]))`` and so on."""
return f(self)