-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Feature Request: Exclude lines from conversion with a comment #574
Comments
no sorry, pyupgrade is an opinionated tool if you don't like the opinions don't use it the whole point is that there's no discussions |
also |
Understood. Thanks for the fast feedback :) |
I greatly appreciate the opinionated nature, but wonder if there might still be a valid use for this. For example, I'm working with code that explicitly inspects (user defined) type hints. In tests I confirm This seems a bit different than say |
you're looking for |
It would be nice if line/block could be excluded from upgrading with a comment like
# nopyupgrade
or# start nopyupgrade
in order to keep specific lines:i.e.
dict(foo="bar")
when intended.We are discussion to include
pyupgrade
in our teams pipeline but some team mate made this an requirement.Would / Will this be possible in the future?
Have a glimps look in the source I don't see how to introduce this easily :-/
Any thoughts?
The text was updated successfully, but these errors were encountered: