Since 2.24
VariantType.newMaybe
glib.variant_type.VariantType newMaybe(glib.variant_type.VariantType element)Constructs the type corresponding to a maybe instance containing type type or Nothing.
It is appropriate to call glib.variant_type.VariantType.free on the return value.
Parameters
element | a #GVariantType |
Returns
a new maybe #GVariantType