-
Notifications
You must be signed in to change notification settings - Fork 897
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
UP035 --fix not working for quoted types #3508
Comments
This test file is even simpler (no from typing import List
myList: List[str] = []
quotedList: "List[str]" = [] |
This is the expected behavior. |
@JonathanPlasse - I can't remember why this is hard 馃槀 Do you have an example of a tricky corner case? |
After spending some time in the issues, here it is!
|
Thank you! :) I'm wondering if we could fix (but leave quoted) instances like |
Yes, this makes sense. |
Some of these are tricky (e.g., |
Hello hello 馃憢馃徎
When running
ruff --fix test.py
(Ruff v0.0.255) for the following test file:it will fix the first (non-quoted) variant, but still only report the second (quoted) variant. Unsure if this is a bug or expected behavior, but I thought I would report it anyways 馃檪
Keep up the awesome work 馃帀
The text was updated successfully, but these errors were encountered: