Skip to content

Make dict.fromkeys() a classmethod (which it is). - #604

Merged
gvanrossum merged 1 commit into
masterfrom
fromkeys
Oct 14, 2016
Merged

gvanrossum merged 1 commit into
masterfrom
fromkeys

Conversation

@gvanrossum

Copy link
Copy Markdown
Member

This came up in python/mypy#2254.

I don't know why it was previously defined as a staticmethod, perhaps
there was an old mypy issue?

This came up in python/mypy#2254.

I don't know why it was previously defined as a staticmethod, perhaps
there was an old mypy issue?
@gvanrossum
gvanrossum merged commit 26dfcb6 into master Oct 14, 2016
gvanrossum pushed a commit that referenced this pull request Oct 15, 2016
Reason: python/mypy#328

* Revert "Make fromkeys() take an Iterable instead of a sequence. (#605)"

  This reverts commit 66e8d4a.

* Revert "Make dict.fromkeys() a classmethod (which it is). (#604)"

  This reverts commit 26dfcb6.

* Add an explanation for fromkeys() being a staticmethod.
hswong3i pushed a commit to alvistack/python-typeshed that referenced this pull request Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant