You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't something supported by pyupgrade (as the autofix would be quite complicated), but it seems like it would be worth a warning. flake8-pep585 catches these.
I agree that we should flag these. They can probably go under the existing pyupgrade rules (even if we can't fix them right now). We do have most of the machinery we'd need to fix these, but that can be a separate effort.
Ruff catches all of these as
UP035
violations:However, none of these trigger that rule:
This isn't something supported by pyupgrade (as the autofix would be quite complicated), but it seems like it would be worth a warning.
flake8-pep585
catches these.On ruff playground:
https://play.ruff.rs/#N4KABGBEDOCmA2sDGAXSAuMBtSBVACpALoA04UKAhgE4DmsKAtAG6zXQCWA9gHYZQAHAJ4BmAIxjIIAL4ASeRwC2ArtRRgUQgRx60QISpk3bdAOgDCvKjrYgARka07aFyvHiU7iEEkcmXAILQQjxIAJIobJ7eACZ+zqYAspQC-iCw8WaW1FwArig2IABmmS4A8tQxbLAxACIcqPpFOYoaTrpgSipqYAAU5BCWPNY8bGQQg24eXrDjE0Eh4ZHU0bMDYMmpznODqnkFoztgFVXUNfWoZACUQA
Note that the names I listed are just examples, there are probably more pep 585 names with the same issue.
The text was updated successfully, but these errors were encountered: