diff --git a/stdlib/2/abc.pyi b/stdlib/2/abc.pyi index 746f5306f..e5fe035f2 100644 --- a/stdlib/2/abc.pyi +++ b/stdlib/2/abc.pyi @@ -1,9 +1,11 @@ -from typing import Any, Dict, Set, Tuple, Type +from typing import Any, Callable, Dict, Set, Tuple, Type, TypeVar import _weakrefset +_FuncT = TypeVar('_FuncT', bound=Callable[..., Any]) + # NOTE: mypy has special processing for ABCMeta and abstractmethod. -def abstractmethod(funcobj: Any) -> Any: ... +def abstractmethod(funcobj: _FuncT) -> _FuncT: ... class ABCMeta(type): # TODO: FrozenSet