Creates a customized copy of the Parameter.
(self, *, name=_void, kind=_void,
annotation=_void, default=_void)
| 2754 | return self._kind |
| 2755 | |
| 2756 | def replace(self, *, name=_void, kind=_void, |
| 2757 | annotation=_void, default=_void): |
| 2758 | """Creates a customized copy of the Parameter.""" |
| 2759 | |
| 2760 | if name is _void: |
| 2761 | name = self._name |
| 2762 | |
| 2763 | if kind is _void: |
| 2764 | kind = self._kind |
| 2765 | |
| 2766 | if annotation is _void: |
| 2767 | annotation = self._annotation |
| 2768 | |
| 2769 | if default is _void: |
| 2770 | default = self._default |
| 2771 | |
| 2772 | return type(self)(name, kind, default=default, annotation=annotation) |
| 2773 | |
| 2774 | def __str__(self): |
| 2775 | return self._format() |
no outgoing calls