Skip to content

Allow overwriting order inferred from _CountingAttr.counter when passing ordered these #300

@leezu

Description

@leezu

attrs classes can be constructed dynamically using attr.s(maybe_cls=A, these=some_dict).
Usually some_dict will be a standard (unordered) python dictionary and the order of attributes has to be inferred from _CountingAttr.counter.

What about allowing the user to overwrite the _CountingAttr.counter by passing an OrderedDict as argument to these?

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