massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / _functools.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2/_functools.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2/_functools.pyi
new file mode 100644 (file)
index 0000000..530f644
--- /dev/null
@@ -0,0 +1,20 @@
+"""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