Overrides/returns a unlocked copy with the current config unchanged.
(self, **kwargs)
| 324 | } |
| 325 | |
| 326 | def replace(self, **kwargs): |
| 327 | """Overrides/returns a unlocked copy with the current config unchanged.""" |
| 328 | # pylint: disable=protected-access |
| 329 | params = copy.deepcopy(self) |
| 330 | params._locked = False |
| 331 | params._override(kwargs, is_strict=True) |
| 332 | # pylint: enable=protected-access |
| 333 | return params |
| 334 | |
| 335 | @classmethod |
| 336 | def from_yaml(cls, file_path: str): |