diff --git a/stdlib/2/functools.pyi b/stdlib/2/functools.pyi index dc812962a..42bc622eb 100644 --- a/stdlib/2/functools.pyi +++ b/stdlib/2/functools.pyi @@ -3,7 +3,7 @@ # NOTE: These are incomplete! from abc import ABCMeta, abstractmethod -from typing import Any, Callable, Generic, Dict, Iterable, Optional, Sequence, Tuple, TypeVar, overload +from typing import Any, Callable, Generic, Dict, Iterable, Optional, Sequence, Tuple, Type, TypeVar, overload _AnyCallable = Callable[..., Any] @@ -22,7 +22,7 @@ WRAPPER_UPDATES: Sequence[str] def update_wrapper(wrapper: _AnyCallable, wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> _AnyCallable: ... def wraps(wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> Callable[[_AnyCallable], _AnyCallable]: ... -def total_ordering(cls: type) -> type: ... +def total_ordering(cls: Type[_T]) -> Type[_T]: ... def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], Any]: ... class partial(Generic[_T]): diff --git a/stdlib/3/functools.pyi b/stdlib/3/functools.pyi index a23ef6f5f..477f51dd5 100644 --- a/stdlib/3/functools.pyi +++ b/stdlib/3/functools.pyi @@ -39,7 +39,7 @@ WRAPPER_UPDATES: Sequence[str] def update_wrapper(wrapper: _AnyCallable, wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> _AnyCallable: ... def wraps(wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> Callable[[_AnyCallable], _AnyCallable]: ... -def total_ordering(cls: type) -> type: ... +def total_ordering(cls: Type[_T]) -> Type[_T]: ... def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], Any]: ... class partial(Generic[_T]):