Investigate an upgrade to Python 3.9.4
See original GitHub issueDescription
Python 3.9.1 has been released today (yay!), which means that it’s mature enough for us to start looking into upgrading the Python version of sir-lancebot. We’ll obviously have to make sure all our dependencies support 3.9 and everything works well, but it would be nice to use the new language features.
Reasoning
It’s better to keep up with Python version, adjusting our code base as required, than making a major leap in major versions with a potential more sizeable migration. Also, Python 3.9 introduces those neat built-in type generics, meaning that those ugly typing.List[Typing.Dict[str, str]]
annotations can be replaced by list[dict[str, str]]
.
Additional Details
We should not rush the upgrade! Take your time and have a look at our dependencies: Do they support Python 3.9? Are there know issues that are relevant for us? If too man roadblocks appear on the horizon, we can simply wait until they’re solved!
Would you like to implement this yourself?
- I’d like to implement this feature myself
- Anyone can implement this feature
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (9 by maintainers)
Top GitHub Comments
I have already slowly started upgrading Python and discord.py.
discord.py
doesn’t officially support 3.9 yet, because it’s dependencies doesn’t support it too. discord.py 1.6.0 will bring support for 3.9 (at least based on that what is said in server), so we need to wait until this.