ParamSpecVariant#

Added in version 2.26.

class ParamSpecVariant(*args, **kwargs)#

Superclasses: ParamSpec

A ParamSpec derived structure that contains the meta data for Variant properties.

When comparing values with param_values_cmp(), scalar values with the same type will be compared with compare(). Other non-None variants will be checked for equality with equal(), and their sort order is otherwise undefined. None is ordered before non-None variants. Two None values compare equal.

Fields#

class ParamSpecVariant
default_value#

A Variant, or None

padding#
parent_instance#

Private ParamSpec portion

type#

A VariantType, or None