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

Commit

Permalink
Fix hashable issue (introduced in develop since base of this PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Dec 12, 2022
1 parent c839469 commit fcc7aa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synapse/api/room_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ class PushRuleRoomFlag:
EXTENSIBLE_EVENTS = "org.matrix.msc3932.extensible_events"


@attr.s(slots=True, frozen=True, auto_attribs=True)
# eq=False means equality and hashing are done using object identity, which suits
# our purposes because each RoomVersion is instantiated only once and some of
# the fields are not hashable.
@attr.s(slots=True, frozen=True, auto_attribs=True, eq=False)
class RoomVersion:
"""An object which describes the unique attributes of a room version."""

Expand Down

0 comments on commit fcc7aa1

Please sign in to comment.