(self)
The superclass of this class, or ``None`` if this is a root class (such as :class:`NSObject`).
The superclass of this class, or ``None`` if this is a root class (such as :class:`NSObject`).
The superclass of this class or None if this is a root class ( such as : class : NSObject ) .
def superclass(self):
        """The superclass of this class, or ``None`` if this is a root class (such as :class:`NSObject`)."""

        super_ptr = libobjc.class_getSuperclass(self)
        if super_ptr.value is None:
            return None
        else:
            return ObjCClass(super_ptr)
def superclass ( self ) : super_ptr = libobjc . class_getSuperclass ( self ) if super_ptr . value is None : return None else : return ObjCClass ( super_ptr )