Use PEP 585 syntax in @python2/_ast, convert more TypeVars to _typeshed.Self, & # noqa a SQLAlchemy line - #6954
Conversation
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
|
Does this definitely work? I.e. why did we skip Python 2 when we did this codemod previously? |
From my perspective, it was because I didn't care about Python 2 stubs, and there would be fewer problems to fix after the script had run if I only ran the script on the Python-3-only stub :) |
|
I wrote "e.g. because scripts did something weird", and this particular reason isn't why I skipped Also, AlexWaygood's scripts tend to be of much better quality than my quick and dirty scripts, so they're less likely to ruin stub files and require manual work :) |
|
Another note: flake8-pyi uses typeshed's |
Part II of trying to get the CI green for PyCQA/flake8-pyi#97