Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit d95301f

Browse files
committed
Fix weakref_slot parameter.
1 parent bec01c0 commit d95301f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

changelog.d/10642.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Convert room member storage tuples to `attrs` classes.

synapse/storage/roommember.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
logger = logging.getLogger(__name__)
2424

2525

26-
@attr.s(slots=True, frozen=True, weakref_slot=True, auto_attribs=True)
26+
@attr.s(slots=True, frozen=True, weakref_slot=False, auto_attribs=True)
2727
class RoomsForUser:
2828
room_id: str
2929
sender: str
@@ -32,19 +32,19 @@ class RoomsForUser:
3232
stream_ordering: int
3333

3434

35-
@attr.s(slots=True, frozen=True, weakref_slot=True, auto_attribs=True)
35+
@attr.s(slots=True, frozen=True, weakref_slot=False, auto_attribs=True)
3636
class GetRoomsForUserWithStreamOrdering:
3737
room_id: str
3838
event_pos: PersistedEventPosition
3939

4040

41-
@attr.s(slots=True, frozen=True, weakref_slot=True, auto_attribs=True)
41+
@attr.s(slots=True, frozen=True, weakref_slot=False, auto_attribs=True)
4242
class ProfileInfo:
4343
avatar_url: Optional[str]
4444
display_name: Optional[str]
4545

4646

47-
@attr.s(slots=True, frozen=True, weakref_slot=True, auto_attribs=True)
47+
@attr.s(slots=True, frozen=True, weakref_slot=False, auto_attribs=True)
4848
class MemberSummary:
4949
# A truncated list of (user_id, event_id) tuples for users of a given
5050
# membership type, suitable for use in calculating heroes for a room.

0 commit comments

Comments
 (0)