bundles / astropy 7.0.1 / astropy / utils / introspection / isinstancemethod
function
astropy.utils.introspection:isinstancemethod
source: /astropy/utils/introspection.py :371
Signature
def isinstancemethod ( cls , obj ) Summary
Extended Summary
Returns True if the given object is an instance method of the class it is defined on (as opposed to a staticmethod or a classmethod).
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).
Aliases
-
astropy.utils.isinstancemethod