(self, instance)
Check whether the given object is an instance of this class.

        If the given object is not an Objective-C object, ``False`` is returned.

        This method allows using :class:`ObjCClass`\\es as the second argument of :func:`isinstance`:
        ``isinstance(obj, NSString)`` is equivalent to ``obj.isKindOfClass(NSString)``.
Check whether the given object is an instance of this class.
Check whether the given object is an instance of this class .
def __instancecheck__(self, instance):
        """Check whether the given object is an instance of this class.

        If the given object is not an Objective-C object, ``False`` is returned.

        This method allows using :class:`ObjCClass`\\es as the second argument of :func:`isinstance`:
        ``isinstance(obj, NSString)`` is equivalent to ``obj.isKindOfClass(NSString)``.
        """

        if isinstance(instance, ObjCInstance):
            return bool(instance.isKindOfClass(self))
        else:
            return False
def __instancecheck__ ( self , instance ) : if isinstance ( instance , ObjCInstance ) : return bool ( instance . isKindOfClass ( self ) ) else : return False