Repository navigation
Fix two misspellings of target_treeitem in tree_overview docstrings - #844
Merged
smathot merged 1 commit intoDec 1, 2026
Merged
Conversation
drop_event_item_existing documented "target_tree_item" and drop_event_item_new documented "target_treeite". Both parameters are target_treeitem, which is the spelling used in the other 76 places. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Collaborator
|
Thanks for this! 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
TreeOverviewhas two drop handlers that both taketarget_treeitem, and both docstrings spell it wrong — differently:drop_event_item_existingtarget_tree_itemtarget_treeitemdrop_event_item_newtarget_treeitetarget_treeitemNumpydoc matches entries by name, so neither currently documents anything, and
target_treeitemreads as undocumented in both. The second is a truncation — the trailingmis simply missing.Both misspellings are unique in the package:
target_tree_itemappears 1 time,target_treeite(not followed bym) appears 1 time, and the correcttarget_treeitemappears 76 times. Two lines in one file.How it was checked
ast.parseon the file — exit 0.ast.get_docstringplus the signature for both methods:drop_event_item_existingnow documentsdata,eandtarget_treeitemwith none unresolved. Before the change each method had one documented name that matched no parameter.grep -cE 'target_tree_item|target_treeite([^m]|$)'on the file — 2 before, 0 after.ruff checkandruff format --check, before and after, with the file stashed andgit status --porcelainasserted empty to get a true baseline. Check output is identical (11 pre-existing findings in both runs) and the format result is unchanged — the file was already reported as needing reformatting before my change, so that is pre-existing. Note the repo does not configure ruff, so those ran on ruff's defaults rather than a project config.I have not run the test suite: this is a two-word docstring change with no runtime effect, and OpenSesame's suite needs a Qt environment that is not set up here. I would rather say that than report a result I did not obtain.
Not changed
A scan finds 9 other docstring entries in
libqtopensesame/that do not resolve to a real argument — among themqtopensesame.py'ssave_filedocumentingdummy,rememberandcatchwhile taking onlyself, andrun_experimentdocumentingfullscreen. Those look like they need a judgement about intent rather than a rename, so I left every one of them out to keep this to a single claim. Happy to look at them separately if useful.🤖 Generated with Claude Code