isinstancemethod#
- astropy.utils.introspection.isinstancemethod(cls, obj)[source]#
 Deprecated since version 6.1: The isinstancemethod function is deprecated and may be removed in a future version.
Returns
Trueif the given object is an instance method of the class it is defined on (as opposed to astaticmethodor aclassmethod).This requires both the class the object is a member of as well as the object itself in order to make this determination.
- Parameters:
 - cls
type The class on which this method was defined.
- obj
object A member of the provided class (the membership is not checked directly, but this function will always return
Falseif the given object is not a member of the given class).
- cls