(self, /, **kwds)
| 461 | 'or iterable') |
| 462 | |
| 463 | def _replace(self, /, **kwds): |
| 464 | result = self._make(_map(kwds.pop, field_names, self)) |
| 465 | if kwds: |
| 466 | raise TypeError(f'Got unexpected field names: {list(kwds)!r}') |
| 467 | return result |
| 468 | |
| 469 | _replace.__doc__ = (f'Return a new {typename} object replacing specified ' |
| 470 | 'fields with new values') |