Skip to content

OrderedDict.copy() returns an OrderedDict #1642

@gvanrossum

Description

@gvanrossum

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 subclass dict and don't override copy(), your copy() method will return just a dict. But OrderedDict.copy() overrides this behavior and the typeshed stub should say so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions