Skip to content

collections.OrderedDict.copy() -> Dict? #2093

Closed
@sophie-h

Description

@sophie-h

mypy 0.4.4

note: In function "f":
5: error: Incompatible return value type (got Dict[Any, Any], expected OrderedDict[Any, Any])
import collections

def f(x: collections.OrderedDict) -> collections.OrderedDict:
    y = x.copy()
    return y

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