Skip to content

Commit

Permalink
Refactor Channel.__hash__
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Mar 13, 2024
1 parent ae934e9 commit f8ea18d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu/objects/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, name: str, game: Game, topic: Optional[str] = None) -> None:
self.logger.disabled = game.logger.disabled

def __hash__(self) -> int:
return int(self.name.encode().hex(), 16)
return hash(self.name)

def __eq__(self, other: object) -> bool:
return self.name == other.name
Expand Down

0 comments on commit f8ea18d

Please sign in to comment.