Skip to main content

VarKwargsMode

This enumeration defines the modes for handling variable keyword arguments, specifying whether they should be treated as a uniform collection or as an unpacked TypedDict.

Attributes

AttributeTypeDescription
Uniform[VarKwargsMode](varkwargsmode.md?sid=validators_arguments_varkwargsmode)Indicates that variable keyword arguments are treated as a uniform mapping where all values share the same type.
UnpackedTypedDict[VarKwargsMode](varkwargsmode.md?sid=validators_arguments_varkwargsmode)Indicates that variable keyword arguments are derived from an unpacked TypedDict, allowing for heterogeneous types per key.