def get_oneline_doc(self) -> str:
        """
        Doc doesn't necessarily mean doctring. It could be anything that
        should be put after the attr's name as an explanation.
        """
        attr = self.attr_obj
        if self.display_group == AttrCategory.DESCRIPTOR:
            if isinstance(attr, property):
                doc_list = ['@property with getter']
                if attr.fset:
                    doc_list.append(SETTER)
                if attr.fdel:
                    doc_list.append(DELETER)
            else:
                doc_list = ['class %s' % attr.__class__.__name__]
                if hasattr(attr, '__get__'):
                    doc_list.append(GETTER)
                if hasattr(attr, '__set__'):
                    doc_list.append(SETTER)
                if hasattr(attr, '__delete__'):
                    doc_list.append(DELETER)
                doc_list[0] = ' '.join([doc_list[0], 'with', doc_list.pop(1)])
            if attr.__doc__ is not None:
                doc_list.append(inspect.getdoc(attr).split('\n', 1)[0])
            return ', '.join(doc_list)

        if hasattr(attr, '__doc__'):
            doc = inspect.getdoc(attr)
            return doc.split('\n', 1)[0] if doc else ''  # default doc is None
        return ''
def get_oneline_doc ( self ) -> str : attr = self . attr_obj if self . display_group == AttrCategory . DESCRIPTOR : if isinstance ( attr , property ) : doc_list = [ '@property with getter' ] if attr . fset : doc_list . append ( SETTER ) if attr . fdel : doc_list . append ( DELETER ) else : doc_list = [ 'class %s' % attr . __class__ . __name__ ] if hasattr ( attr , '__get__' ) : doc_list . append ( GETTER ) if hasattr ( attr , '__set__' ) : doc_list . append ( SETTER ) if hasattr ( attr , '__delete__' ) : doc_list . append ( DELETER ) doc_list [ 0 ] = ' ' . join ( [ doc_list [ 0 ] , 'with' , doc_list . pop ( 1 ) ] ) if attr . __doc__ is not None : doc_list . append ( inspect . getdoc ( attr ) . split ( '\n' , 1 ) [ 0 ] ) return ', ' . join ( doc_list ) if hasattr ( attr , '__doc__' ) : doc = inspect . getdoc ( attr ) return doc . split ( '\n' , 1 ) [ 0 ] if doc else '' return ''
Doc doesn't necessarily mean doctring. It could be anything that
        should be put after the attr's name as an explanation.