2025-12-01
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user