def can_document_member(cls, member, membername, isattr, parent): if not FunctionDocumenter.can_document_member(member, membername, isattr, parent): return False if member.__doc__ is not None and yaml_sig_re.match(member.__doc__): return True return False
def can_document_member(cls, member, membername, isattr, parent): if not FunctionDocumenter.can_document_member(member, membername, isattr, parent): return False if member.__doc__ is not None and yaml_sig_re.match(member.__doc__): return True return False
def can_document_member(cls, member, membername, isattr, parent): can = FunctionDocumenter.can_document_member(member, membername, isattr, parent) # bound methods plus = isinstance(parent, ModuleDocumenter) and inspect.ismethod(member) return can or plus
def can_document_member(cls, member, membername, isattr, parent): can = FunctionDocumenter.can_document_member( member, membername, isattr, parent) # bound methods plus = isinstance(parent, ModuleDocumenter) and inspect.ismethod(member) return can or plus