UQComputingSociety / uqcsbot-discord

:mortar_board: UQCSbot: Our friendly little Discord bot
https://discord.uqcs.org
MIT License
20 stars 20 forks source link

Fix Types for bot.py #206

Open 49Indium opened 3 months ago

49Indium commented 3 months ago

Apscheduler has prerelease versions with typing. This PR prepares bot.py to pass pyright typing checks once apscheduler v4 is released for production. There are some additional breaking changes when moving to v4, which are fixed by this PR.

This PR should also fix the types surrounding aiohttp.

Note to test this PR before the production release of apscheduler, edit the pyproject.toml to use the dependency APScheduler = {version = "^4.0.0a1", allow-prereleases = true}.

To ensure that this is not closed before updating the version of apscheduler: