Variant

class dbus_fast.Variant(signature: Union[str, dbus_fast.signature.SignatureTree, dbus_fast.signature.SignatureType], value: Any, verify: bool = True)

A class to represent a DBus variant (type “v”).

This class is used in message bodies to represent variants. The user can expect a value in the body with type “v” to use this class and can construct this class directly for use in message bodies sent over the bus.

Variables
Raises

InvalidSignatureError if the signature is not valid. SignatureBodyMismatchError if the signature does not match the body.

signature
type
value