clean up _functools.pyi

This commit is contained in:
Matthias Kramm
2015-09-28 08:25:41 -07:00
parent cf4cdb12c2
commit 1a38d360c7

View File

@@ -1,14 +1,14 @@
"""Stub file for the '_functools' module."""
# This is an autogenerated file. It serves as a starting point
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import Any, List, Tuple, Dict, Generic
def reduce(*args, **kwargs) -> Any:
raise TypeError()
from typing import Any, Callable
_T = TypeVar("T")
def reduce(function: Callable[[_T, _T], _T],
sequence: Iterator[_T], initial=Optional[_T]) -> _T: ...
class partial(object):
def __reduce__(self) -> tuple: ...
def __setstate__(self, a, b, c, d) -> None: ...
func = ... # type: Callable[..., Any]
args = ... # type: Tuple[Any]
keywords = ... # type: Dict[str, Any]
def __init__(self, func: Callable[..., Any], *args, **kwargs) -> None: ...
def __call__(self, *args, **kwargs) -> Any: ...