Replace the args, kwargs or options set for this signature. These are only replaced if the argument for the section is not :const:`None`.
(self, args=None, kwargs=None, options=None)
| 521 | _freeze = freeze |
| 522 | |
| 523 | def replace(self, args=None, kwargs=None, options=None): |
| 524 | """Replace the args, kwargs or options set for this signature. |
| 525 | |
| 526 | These are only replaced if the argument for the section is |
| 527 | not :const:`None`. |
| 528 | """ |
| 529 | signature = self.clone() |
| 530 | if args is not None: |
| 531 | signature.args = args |
| 532 | if kwargs is not None: |
| 533 | signature.kwargs = kwargs |
| 534 | if options is not None: |
| 535 | signature.options = options |
| 536 | return signature |
| 537 | |
| 538 | def set(self, immutable=None, **options): |
| 539 | """Set arbitrary execution options (same as ``.options.update(…)``). |