unknown_union

Fallback for union members of an unrecognised type.

class atproto_client.models.unknown_union.UnknownUnionFallback

Bases: object

Annotation for open ref unions: an unrecognized $type falls back to DotDict.

Applied to t.Union[<known members>, 'dot_dict.DotDictType']. Members are discriminated by py_type as usual, so a known type that fails validation still raises. Only a $type that matches no member, or a missing one, degrades to a DotDict.

atproto_client.models.unknown_union.OpenUnion

An open ref union: the described types, plus a DotDict for a $type released after this SDK.

alias of Annotated[_T | Annotated[DotDict, _DotDictPydanticAnnotation], UnknownUnionFallback]

class atproto_client.models.unknown_union.UnknownRecordFallback

Bases: object

Annotation for lexicon unknown fields: any registered record type, else DotDict.

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.