Archipelago/worlds/stardew_valley/content/override.py

8 lines
179 B
Python

from typing import Any
def override(content: Any, **kwargs) -> Any:
attributes = dict(content.__dict__)
attributes.update(kwargs)
return type(content)(**attributes)