Skip to content

Regression - RepresenterError on dict subclass #142

@jaraco

Description

@jaraco

Due to #126, I'm running pyyaml at master. When I try to run code that passes on released versions of pyyaml, it fails in master:

-> raise RepresenterError("cannot represent an object", data)
(Pdb) type(data)
<class 'pmxbot.dictlib.ConfigDict'>
(Pdb) isinstance(data, dict)
True

As the object is a subclass of dict, it would previously be treated as a dict for the purpose of serialization. Is this an intentional change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions