Skip to content

use init-style reprs on user-creatable classes #1448

@onerandomusername

Description

@onerandomusername

We use <class-name attrs=value> style reprs on pretty much every model. For user creatable classes, it would be nice to use class-name(attr=value) style reprs instead, so they can be copied to recreate the object. For some classes, this may result in a lot of values, but they should be included.

This would follow the style outlined by https://docs.python.org/3/reference/datamodel.html#object.__repr

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions