(self)
:rtype: list of :class:`Decorator`
:rtype: list of :class:`Decorator`
: rtype : list of : class : Decorator
def get_decorators(self):
        """
        :rtype: list of :class:`Decorator`
        """
        decorated = self.parent
        if decorated.type == 'decorated':
            if decorated.children[0].type == 'decorators':
                return decorated.children[0].children
            else:
                return decorated.children[:1]
        else:
            return []
def get_decorators ( self ) : decorated = self . parent if decorated . type == 'decorated' : if decorated . children [ 0 ] . type == 'decorators' : return decorated . children [ 0 ] . children else : return decorated . children [ : 1 ] else : return [ ]