Determine if a class is a subclass of a second class.
issubclass_ is equivalent to the Python built-in issubclass, except that it returns False instead of raising a TypeError is one of the arguments is not a class.
Parameters : | arg1 : class
arg2 : class or tuple of classes.
|
---|---|
Returns : | out : bool
|
See also
Examples
>>> np.issubclass_(np.int32, np.int)
True
>>> np.issubclass_(np.int32, np.float)
False