Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

itemgetter parameters can be any type that the container accepts #564

Merged
merged 1 commit into from
Sep 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/2and3/operator.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]: ...

Expand Down