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:
[ ] Update pyproject.toml to require apscheduler version ^4.0.0
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 dependencyAPScheduler = {version = "^4.0.0a1", allow-prereleases = true}
.To ensure that this is not closed before updating the version of apscheduler:
pyproject.toml
to require apscheduler version^4.0.0