-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
builtins: Fix unconstrained overloads in set() and frozenset() #7944
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
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -909,7 +909,7 @@ class list(MutableSequence[_T], Generic[_T]): | |||
class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]): | |||
# __init__ should be kept roughly in line with `collections.UserDict.__init__`, which has similar semantics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make a similar change to collections.UserDict.__init__
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, made similar changes to constructors in that file.
This comment has been minimized.
This comment has been minimized.
Thanks Alex! Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
See microsoft/pyright#3501 (comment)
Related to #7928