SignatureType¶
-
class
dbus_next.SignatureType(token)¶ A class that represents a single complete type within a signature.
This class is not meant to be constructed directly. Use the
SignatureTreeclass to parse signatures.- Variables
signature (str) – The signature of this complete type.
children (list(
SignatureType)) – A list of child types if this is a container type. Arrays have one child type, dict entries have two child types (key and value), and structs have child types equal to the number of struct members.
-
verify(body: Any) → bool¶ Verify that the body matches this type.
- Returns
True if the body matches this type.
- Raises
SignatureBodyMismatchErrorif the body does not match this type.