Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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