Fixed mypy override compatibility error in bot start method signature.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 4s
CI / Tests (push) Successful in 21s
CI / Type Checking (push) Successful in 10s
CI / Spelling (push) Successful in 4s
Audit / Dependencies (push) Successful in 6s

This commit is contained in:
2026-03-22 14:54:12 -04:00
parent 2cf00fde4f
commit a23d252f27
+2 -2
View File
@@ -161,9 +161,9 @@ class Crabstero(commands.Bot):
"""Log that the bot has started successfully."""
logger.info("Crabstero started!")
async def start(self, **kwargs: object) -> None:
async def start(self, token: str = "", *, reconnect: bool = True) -> None:
"""Start the bot using the token provided at initialization."""
await super().start(self._token, **kwargs)
await super().start(self._token, reconnect=reconnect)
async def close(self) -> None:
"""Cancel ingestion workers, close the database, and then the bot connection."""