Skip to content

Fix stale docstring in test_union_find#20

Merged
monneyboi merged 1 commit intomainfrom
fix/stale-docstring-union-find
Mar 7, 2026
Merged

Fix stale docstring in test_union_find#20
monneyboi merged 1 commit intomainfrom
fix/stale-docstring-union-find

Conversation

@claude
Copy link

@claude claude bot commented Mar 7, 2026

Summary

  • Updates the misleading docstring in test_works_with_tuple_keys that claimed entity keys in the codebase are (graph_id, entity_id) tuples
  • Entity keys are actually UUID strings (see graph.py:31); the docstring now correctly states the test verifies UnionFind works with any hashable key type

Closes #16

Test plan

  • Verified the docstring change is accurate
  • No code logic changes — tests pass as before

🤖 Generated with Claude Code

Entity keys are UUID strings, not (graph_id, entity_id) tuples. The test
correctly exercises tuple keys to verify UnionFind works with arbitrary
hashable types — update the docstring to reflect that intent.

Closes #16

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@monneyboi monneyboi closed this Mar 7, 2026
@monneyboi monneyboi reopened this Mar 7, 2026
@monneyboi monneyboi merged commit c3d3ef9 into main Mar 7, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stale docstring in test_union_find claims keys are tuples

1 participant