mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
13 lines
431 B
Python
13 lines
431 B
Python
from typing import Any, Callable
|
|
|
|
_T = TypeVar("T")
|
|
def reduce(function: Callable[[_T], _T],
|
|
sequence: Iterator[_T], initial=Optional[_T]) -> _T: ...
|
|
|
|
class partial(object):
|
|
func = ... # 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: ...
|