(self)
Sets the raises and descriptions
Sets the raises and descriptions
Sets the raises and descriptions
def _set_raises(self):
        """Sets the raises and descriptions"""
        # TODO: manage different in/out styles
        # manage setting if not mandatory for numpy but optional
        if self.docs['in']['raises']:
            if self.dst.style['out'] != 'numpydoc' or self.dst.style['in'] == 'numpydoc' or \
                    (self.dst.style['out'] == 'numpydoc' and
                     'raise' not in self.dst.numpydoc.get_excluded_sections()):
                # list of parameters is like: (name, description)
                self.docs['out']['raises'] = list(self.docs['in']['raises'])
def _set_raises ( self ) : # TODO: manage different in/out styles # manage setting if not mandatory for numpy but optional if self . docs [ 'in' ] [ 'raises' ] : if self . dst . style [ 'out' ] != 'numpydoc' or self . dst . style [ 'in' ] == 'numpydoc' or ( self . dst . style [ 'out' ] == 'numpydoc' and 'raise' not in self . dst . numpydoc . get_excluded_sections ( ) ) : # list of parameters is like: (name, description) self . docs [ 'out' ] [ 'raises' ] = list ( self . docs [ 'in' ] [ 'raises' ] )