element-hq / element-hq/synapse

Consider requiring attrs >= 20.1.0 for "next-gen" `attrs.mutable` and `attrs.frozen`

Open
#13,243 0 comments 0 reactions 0 assignees View on GitHub
T-Task Z-Dev-Wishlist
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#13243](https://github.com/matrix-org/synapse/issues/13243).

---

Attrs 20.1.0 introduced a "Next-gen API", see https://www.attrs.org/en/stable/names.html#tl-dr . From https://www.attrs.org/en/stable/api.html#attrs.define this basically contributes a bunch of sensible defaults (auto-detect auto_attribs; slots by default, opt-in ordering). This is slightly nicer from our POV as it makes it harder to forget to write `slots=True` etc.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.