unknown_union
Fallback for union members of an unrecognised type.
- class atproto_client.models.unknown_union.UnknownUnionFallback
Bases:
objectAnnotation for open ref unions: an unrecognized
$typefalls back toDotDict.Applied to
t.Union[<known members>, 'dot_dict.DotDictType']. Members are discriminated bypy_typeas usual, so a known type that fails validation still raises. Only a$typethat matches no member, or a missing one, degrades to aDotDict.
- atproto_client.models.unknown_union.OpenUnion
An open ref union: the described types, plus a
DotDictfor a$typereleased after this SDK.alias of
Annotated[_T|Annotated[DotDict,_DotDictPydanticAnnotation],UnknownUnionFallback]
- class atproto_client.models.unknown_union.UnknownRecordFallback
Bases:
objectAnnotation for lexicon
unknownfields: any registered record type, elseDotDict.Record types are looked up in the runtime registry rather than in a union fixed at import time, so a record defined by a package generated from custom lexicons is decoded to its own model.