-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
gh-130425: Add "Did you mean [...]" suggestions for del obj.attr
#136588
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
Conversation
del obj.attr
Misc/NEWS.d/next/Core_and_Builtins/2025-02-22-01-23-23.gh-issue-130425.x5SNQ8.rst
Show resolved
Hide resolved
@Pranjal095 Please mark comments as Resolved when you are finished with them, it helps keep the PR organized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good now.
I'll let @sobolevn have a look as well as he's credited as a contributor as well.
This allows moving test_suggestions_with_method_call back to test_getattr_suggestions_underscored, so that delattr is tested for these as well.
I noticed that some of the setattr tests don't run for delattr, but could. See Pranjal095#1 |
Delattr suggestions re
Thanks a lot for catching this! I hadn’t noticed the issue myself, and I’m very happy to have merged the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@sobolevn, I plan to merge around Friday if there are no objections.
This pull request replaces the earlier PR #130799 (now closed) and carries over that set of commits, preserving original authorship and history. An extra commit has been included to address a linting issue that was present in the previous version.
Issue: #130425