Skip to content

Discussion: attrs vs dataclasses #173

@effigies

Description

@effigies

I've spent a bit of time reading through the attrs documentation, and it looks pretty straightforward and capable of providing much of what we use traits for in Nipype 1. And as a pure Python dependency, it seems quite light.

I don't fully understand the problems with dataclasses, though, so I wanted to start a discussion thread where we can work through these issues. The attrs Why not Data Classes? section is a bit light on details (though it may be quite clear for someone who's played with them...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceRefactors and improvements to code quality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions