Files
blender-portable-repo/scripts/addons/Rokoko Libraries/python311/graphql/pyutils/merge_kwargs.py
T
2026-03-17 14:58:51 -06:00

9 lines
250 B
Python

from typing import cast, Any, Dict, TypeVar
T = TypeVar("T")
def merge_kwargs(base_dict: T, **kwargs: Any) -> T:
"""Return arbitrary typed dictionary with some keyword args merged in."""
return cast(T, {**cast(Dict, base_dict), **kwargs})