-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OrderedDict.copy() returns an OrderedDict #1642
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
Comments
I don't think this is closed yet. #1656 didn't fix this, since the added |
Fixed by #1856 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should add this to the stub for OrderedDict. (Both Python 2 and 3.)
Note that we can't fix this by using a self-type for
dict.copy()
because in general if you subclassdict
and don't overridecopy()
, yourcopy()
method will return just adict
. ButOrderedDict.copy()
overrides this behavior and the typeshed stub should say so.The text was updated successfully, but these errors were encountered: