GObject.Type

An object which represents the unique identifier of a registered type.

GObject.Types are retrieved with GObject.type_from_name, but whenever a function or argument requires a GObject.Type it is instead possible to pass the object class instead, so for example one can pass GObject.Object instead of GObject.type_from_name('GObject'), and GObject.VoidType instead of GObject.type_from_name('void').

GObject.Type is also the class object representing the GType type in the GObject type system, and as such you can pass it to methods taking a GObject.Type.

Calling GObject.Type(name) will return the type object with name name, if such exists, or an invalid object otherwise.