From da23e8acde200a6a22d1fd421662e49543af7d20 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Tue, 5 Aug 2025 14:58:14 -0600 Subject: [PATCH] Make attr autogenerate init --- synapse/types/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/types/__init__.py b/synapse/types/__init__.py index 60b9273ed..914bb6cb2 100644 --- a/synapse/types/__init__.py +++ b/synapse/types/__init__.py @@ -364,7 +364,7 @@ class RoomIdWithDomain(DomainSpecificString): ROOM_ID_PATTERN_DOMAINLESS = re.compile(r"^[A-Za-z0-9\-_]{43}$") -@attr.s(slots=True, frozen=True, repr=False) +@attr.s(slots=True, frozen=True, auto_attribs=True, repr=False) class RoomID: """Structure representing a room id without a domain. There are two forms of room IDs: