Files
zenml/venv/lib/python3.9/site-packages/graphql/pyutils/merge_kwargs.py
Christian Mantha 2ca0b9ef7c star
2026-03-02 19:10:52 -05: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})