(cls, method_name)
Private helper. Checks if ``cls`` has an attribute
    named ``method_name`` and returns it only if it is a
    pure python function.
Private helper. Checks if ``cls`` has an attribute
    named ``method_name`` and returns it only if it is a
    pure python function.
Private helper . Checks if cls has an attribute named method_name and returns it only if it is a pure python function .
def _signature_get_user_defined_method(cls, method_name):
    """Private helper. Checks if ``cls`` has an attribute
    named ``method_name`` and returns it only if it is a
    pure python function.
    """
    try:
        meth = getattr(cls, method_name)
    except AttributeError:
        return
    else:
        if not isinstance(meth, _NonUserDefinedCallables):
            # Once '__signature__' will be added to 'C'-level
            # callables, this check won't be necessary
            return meth
def _signature_get_user_defined_method ( cls , method_name ) : try : meth = getattr ( cls , method_name ) except AttributeError : return else : if not isinstance ( meth , _NonUserDefinedCallables ) : # Once '__signature__' will be added to 'C'-level # callables, this check won't be necessary return meth