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.