fix(aurora): don't inherit from AuroraBaseModel
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 22s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 31s

This commit is contained in:
Seaswimmer 2024-05-04 18:22:42 -04:00
parent ea280c2d62
commit 6520f4f2b9
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -16,8 +16,9 @@ class AuroraBaseModel(BaseModel):
from aurora.utilities.json import dump, dumps from aurora.utilities.json import dump, dumps
return dump(self.model_dump(exclude={"bot"}), file, indent=indent, **kwargs) if file else dumps(self.model_dump(exclude={"bot"}), indent=indent, **kwargs) return dump(self.model_dump(exclude={"bot"}), file, indent=indent, **kwargs) if file else dumps(self.model_dump(exclude={"bot"}), indent=indent, **kwargs)
class AuroraGuildModel(AuroraBaseModel): class AuroraGuildModel(BaseModel):
"""Subclass of AuroraBaseModel that includes a guild_id attribute, and a modified to_json() method to match.""" """Base class that includes a guild_id attribute, and a modified to_json() method to match."""
bot: ClassVar[Red]
guild_id: int guild_id: int
def to_json(self, indent: int = None, file: Any = None, **kwargs): def to_json(self, indent: int = None, file: Any = None, **kwargs):