-
Notifications
You must be signed in to change notification settings - Fork 100
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
2.1.0: filtering all code over pyupgrade --py38-plus
causes some issues
#451
Comments
I think the type rendering shows something different depending on whether you put |
I do not feel enough competent to help you with that 😢 Just if you see anything wrong in those changes please report that on https://github.com/asottile/pyupgrade/issues.
I'm not sure is it good solution because probably sooner or latter it will be probably necessary to resolve that 🤔 FYI: So far on testing [tkloczko@pers-jacek SPECS]$ grep -l "Patch:.*%{name}-pyupgrade_py38.patch" *spec | wc -l
327 modules this one is only one with that kind of issues so basing only on that probability that it could be something with |
There's nothing wrong with the changes, it's certainly not a pyupgrade bug.
This change is not a "you will need to do this eventually or it will break" kind of thing but rather a "we think this is a nicer way to write this that works in this new Python version" change. If you look at the Python docs it says under Optional:
It can be written that way but does not have to be. |
I'v been trying to cut off EOSed already python<3.7 code by filtering all code over
pyupgrade --py38-plus
.Below patch has been generated
I'm not sure is something wrong with
pyupgrade
orsphinx-autodoc-typehints
code needs to be prepared to filter it overpyugrade
.I think that it would be good to have look on that because this year Sep 3.8 will be EOSed 🤔
The text was updated successfully, but these errors were encountered: