numpy.issubclass_(arg1, arg2)
[source]
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 if one of the arguments is not a class.
Parameters: |
|
---|---|
Returns: |
|
See also
>>> np.issubclass_(np.int32, int) False # True on Python 2.7 >>> np.issubclass_(np.int32, float) False
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.issubclass_.html