Files
zenml/venv/lib/python3.9/site-packages/graphql/pyutils/identity_func.py
Christian Mantha 2ca0b9ef7c star
2026-03-02 19:10:52 -05:00

14 lines
247 B
Python

from typing import cast, Any, TypeVar
from .undefined import Undefined
__all__ = ["identity_func"]
T = TypeVar("T")
def identity_func(x: T = cast(Any, Undefined), *_args: Any) -> T:
"""Return the first received argument."""
return x