Skip to content

bagof.hints.unpackable

Objects unpackable into keyword arguments.

Classes

Unpackable

Bases: Protocol[T]

A protocol for objects that can be unpacked using the ** syntax.

Unpacking a mapping-like object into keyword arguments only requires keys() and __getitem__, so this protocol is deliberately narrower than Mapping. The parameter is the value type; keys are always strings, since they become keyword argument names.