Skip to content

Commit

Permalink
Use frozenset for LIST
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jul 19, 2024
1 parent e809ace commit d7f35bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/api/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Membership:
KNOCK: Final = "knock"
LEAVE: Final = "leave"
BAN: Final = "ban"
LIST: Final = (INVITE, JOIN, KNOCK, LEAVE, BAN)
LIST: Final = frozenset((INVITE, JOIN, KNOCK, LEAVE, BAN))


class PresenceState:
Expand Down

0 comments on commit d7f35bf

Please sign in to comment.