(self: Any, **kwargs: Any)
| 200 | copy_copy = copy.copy |
| 201 | |
| 202 | def __replace__(self: Any, **kwargs: Any) -> Any: |
| 203 | obj = copy_copy(self) |
| 204 | cls = type(obj) |
| 205 | for key, value in kwargs.items(): |
| 206 | getattr(cls, key).set(obj, value) |
| 207 | return obj |
| 208 | |
| 209 | return __replace__ |
| 210 |