예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 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
예제 #4
0
 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