Contents:
from typing import Callable, TypeVar T = TypeVar("T") [docs] def const(value: T) -> Callable[[], T]: return lambda: value