From 6084530d4e84fb1c4781c6960451962c8e9584c9 Mon Sep 17 00:00:00 2001 From: Gustavo Carneiro Date: Wed, 21 Sep 2016 16:19:06 +0100 Subject: [PATCH] itemgetter parameters can be any type that the container accepts, not just int --- stdlib/2and3/operator.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2and3/operator.pyi b/stdlib/2and3/operator.pyi index a45a79d29539..adce212a4bdc 100644 --- a/stdlib/2and3/operator.pyi +++ b/stdlib/2and3/operator.pyi @@ -161,9 +161,9 @@ def attrgetter(attr: str) -> Callable[[Any], Any]: ... def attrgetter(*attrs: str) -> Callable[[Any], Tuple[Any, ...]]: ... @overload -def itemgetter(item: int) -> Callable[[Any], Any]: ... +def itemgetter(item: Any) -> Callable[[Any], Any]: ... @overload -def itemgetter(*items: int) -> Callable[[Any], Tuple[Any, ...]]: ... +def itemgetter(*items: Any) -> Callable[[Any], Tuple[Any, ...]]: ... def methodcaller(name: str, *args: Any, **kwargs: Any) -> Callable[..., Any]: ...