mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
clean up _functools.pyi
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user