Since 2.24
VariantType.key
Determines the key type of a dictionary entry type.
This function may only be used with a dictionary entry type. Other than the additional restriction, this call is equivalent to [glib.variant_type.VariantType.first].
Returns
the key type of the dictionary entry