8000 Make fromkeys() take an Iterable instead of a sequence [REVERTED] by gvanrossum · Pull Request #605 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Make fromkeys() take an Iterable instead of a sequ 8000 ence [REVERTED] #605

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

Merged
merged 1 commit into from
Oct 14, 2016
Merged
Show file tree
Hide file tree
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 4 stdlib/2.7/__builtin__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,10 @@ class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
def viewitems(self) -> ItemsView[_KT, _VT]: ...
@overload
@classmethod
def fromkeys(cls, seq: Sequence[_T]) -> Dict[_T, Any]: ...
def fromkeys(cls, seq: Iterable[_T]) -> Dict[_T, Any]: ...
@overload
@classmethod
def fromkeys(cls, seq: Sequence[_T], value: _S) -> Dict[_T, _S]: ...
def fromkeys(cls, seq: Iterable[_T], value: _S) -> Dict[_T, _S]: ...
def __len__(self) -> int: ...
def __getitem__(self, k: _KT) -> _VT: ...
def __setitem__(self, k: _KT, v: _VT) -> None: ...
Expand Down
4 changes: 2 additions & 2 deletions stdlib/3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,10 @@ class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
def items(self) -> ItemsView[_KT, _VT]: ...
@overload
@classmethod
def fromkeys(cls, seq: Sequence[_T]) -> Dict[_T, Any]: ...
def fromkeys(cls, seq: Iterable[_T]) -> Dict[_T, Any]: ...
@overload
@classmethod
def fromkeys(cls, seq: Sequence[_T], value: _S) -> Dict[_T, _S]: ...
def fromkeys(cls, seq: Iterable[_T], value: _S) -> Dict[_T, _S]: ...
def __len__(self) -> int: ...
def __getitem__(self, k: _KT) -> _VT: ...
def __setitem__(self, k: _KT, v: _VT) -> None: ...
Expand Down
0