8000 Full signature for namedtuple by elazarg · Pull Request #541 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Full signature for namedtuple #541

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 9 commits into from
Sep 13, 2016
Merged
Changes from 1 commit
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
Next Next commit
update nameduple() to function signature + module
  • Loading branch information
elazarg committed Sep 13, 2016
commit f21b53e2ae259a5ee0167972f92ce31f943885f9
4 changes: 3 additions & 1 deletion stdlib/3/collections/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ _VT = TypeVar('_VT')


# namedtuple is special-cased in the type checker; the initializer is ignored.
namedtuple = object()
def namedtuple(typename: str, field_names: Union[str, Iterable[Any]], *,
verbose: bool = ..., rename: bool = ..., module: str = None) -> Type[tuple]: ...


class UserDict(MutableMapping): ...
class UserList(MutableSequence): ...
Expand Down
0