mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
8 lines
179 B
Python
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)
|