-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to python 3.9 #828
Update to python 3.9 #828
Conversation
bf51d95
to
88de940
Compare
Note that this commit does not remove the mock package from the Pipenv dependencies.
Note that this commit does not remove asynctest from the Pipenv dependencies.
19988b0
to
d717ddd
Compare
d717ddd
to
5b3799b
Compare
2d29a91
to
3692f9e
Compare
Codecov Report
|
3692f9e
to
87d1365
Compare
Lots of files are touched because of the typing changes, but there isn't anything complicated going on there |
fad1f28
to
359c710
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
I think I'm going to remove the |
This reverts commit 27283fe.
d08175e
to
bf3eaea
Compare
Based on #827
Finally got the tests running on 3.9 without them spitting out hundreds of warnings. I had to remove a bit of deprecated functionality
by swapping the mock and asynctest packages with builtin unittest.mock equivalents.
Unfortunately aiomysql still uses deprecated functionality (and there is no hope of it being fixed since that project seems to have no maintainer anymore), so we have to just ignore the deprecation warningsFortunately aiomysql finally merged their open python3.9+ compatibility prs. Also it seems that either aiohttp hasn't properly declared its dependencies or pipenv is doing something weird, as I had to explicitly include typing_extensions in the dependencies since aiohttp tries to import it.I also went ahead and did a few refactors that are possible in 3.9:
list[str]
instead ofList[str]
(this one touches basically every file)