'Replace the args, kwargs or options set for this signature.
These are only replaced if the argument for the section is
not :const:`None`.'

def replace(self, args=None, kwargs=None, options=None):

    s = self.clone()
    if (args is not None):
        s.args = args
    if (kwargs is not None):
        s.kwargs = kwargs
    if (options is not None):
        s.options = options
    return s
