--- /dev/null
+"""Stub file for the '_functools' module."""\r
+\r
+from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Tuple, overload\r
+\r
+_T = TypeVar("_T")\r
+_S = TypeVar("_S")\r
+\r
+@overload\r
+def reduce(function: Callable[[_T, _T], _T],\r
+ sequence: Iterable[_T]) -> _T: ...\r
+@overload\r
+def reduce(function: Callable[[_T, _S], _T],\r
+ sequence: Iterable[_S], initial: _T) -> _T: ...\r
+\r
+class partial(object):\r
+ func = ... # type: Callable[..., Any]\r
+ args = ... # type: Tuple[Any, ...]\r
+ keywords = ... # type: Dict[str, Any]\r
+ def __init__(self, func: Callable[..., Any], *args: Any, **kwargs: Any) -> None: ...\r
+ def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\r