Skip to content

[stdlib] Add docstring examples to Set methods#6390

Open
isaacuselman wants to merge 1 commit intomodular:mainfrom
isaacuselman:add-set-docstring-examples
Open

[stdlib] Add docstring examples to Set methods#6390
isaacuselman wants to merge 1 commit intomodular:mainfrom
isaacuselman:add-set-docstring-examples

Conversation

@isaacuselman
Copy link
Copy Markdown
Contributor

Partial fix for #3572

Summary

  • Adds examples to 11 Set methods: __contains__, add, remove, union, intersection, difference, issubset, isdisjoint, symmetric_difference, discard, clear

Testing

  • ./bazelw test //mojo/stdlib/std:std.docs_test — passes
  • ./bazelw run //:lint — passes

Checklist

  • PR is small and focused
  • I ran ./bazelw run format to format my changes
  • I added or updated tests to cover my changes
  • If AI tools assisted with this contribution, I have included an Assisted-by: trailer in my commit message or this PR description (see AI Tool Use Policy)

Adds examples to 11 methods: __contains__, add, remove, union,
intersection, difference, issubset, isdisjoint, symmetric_difference,
discard, clear. Partial fix for modular#3572.

Assisted-by: Claude (Anthropic)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@isaacuselman isaacuselman requested a review from a team as a code owner April 9, 2026 00:01
@github-actions github-actions Bot added mojo-stdlib Tag for issues related to standard library waiting-on-review labels Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mojo-stdlib Tag for issues related to standard library waiting-on-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant