Skip to content

Port to attrs version >=21.4 #377

@hf-kklein

Description

@hf-kklein

There is a dependabot PR #297 which updates attrs to v21.4.
This version brings a lot of redability improvements of the attrs-API.

We should use these improvements here.

Namely the changes include:

  • attrs.define instead of attr.s
  • attrs.field instead of attr.ib
  • attrs.validators instead of attr.validators

Todo:

In a fork of this repo:

  • Switch to the new API
  • Make sure all the CI actions still pass
  • Open a PR to this repository

(You can check a similar change here).

Metadata

Metadata

Assignees

Labels

Python Specific 🐍a problem that is specific to this python implementation and not the bo4e data modelenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions