Skip to content

Commit

Permalink
Fix APICog not being hashable
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Sep 15, 2024
1 parent cc1e664 commit cb4fe81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot/src/ghutils/cogs/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def get_login(
return HTMLResponse(SUCCESS_PAGE)


@dataclass
@dataclass(eq=False)
class APICog(GHUtilsCog):
server: Server | None = field(default=None, init=False)

Expand Down
2 changes: 1 addition & 1 deletion bot/src/ghutils/core/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __new__(cls, *args: Any, **kwargs: Any) -> CogMeta:
return super().__new__(cls, *args, **kwargs)


@dataclass
@dataclass(eq=False)
class GHUtilsCog(Cog, metaclass=GHUtilsCogMeta):
"""Base class for GHUtils cogs.
Expand Down

0 comments on commit cb4fe81

Please sign in to comment.