Skip to content

docs: move description text out of Examples: sections in merged files - #4234

Merged
TaiSakuma merged 1 commit into
scikit-hep:mainfrom
TaiSakuma:docs-fix-merged-examples-3980
Jul 27, 2026
Merged

docs: move description text out of Examples: sections in merged files#4234
TaiSakuma merged 1 commit into
scikit-hep:mainfrom
TaiSakuma:docs-fix-merged-examples-3980

Conversation

@TaiSakuma

Copy link
Copy Markdown
Member

The docstring conversions of the #3980 rollout placed some main-description text under Examples: headers, found in a review comment on PR #4139 and tracked in #4233. This PR applies the Examples:-section checklist to the 17 already-merged files: description paragraphs (behavior, arguments, history) move above Args: into the extended description, relocated verbatim (only re-indented and re-wrapped); Examples: keeps only doctest walkthroughs and their connecting prose; "See also" lines sit directly above Args:.

All changes are docstring-only (verified by comparing docstring-stripped ASTs against the previous revision) and every doctest line is byte-identical (verified by comparing the multiset of >>>/... lines per file).

Per-file decisions

Operation Decision
ak.copy Moved: the "exception to this rule" paragraph (with its embedded shallow-copy doctest kept as a literal block) and the closing "key to Awkward Array's efficiency" advice.
ak.transform Moved: the "primary purpose", "return value must be a subclass", and more_arrays paragraphs.
ak.from_buffers Moved: the round-trip note, container, buffer_key, and allow_noncanonical_form paragraphs; the Examples: header is removed because nothing example-like remained (mirrors ak.to_buffers after the fix on #4139).
ak.from_feather Moved: "See also #ak.to_feather."
ak.from_json Moved: the file/network-connection paragraphs, the line-delimited note, the JSONSchemas subsection (it contains no doctests), and "See also #ak.to_json."
ak.from_regular Moved: "See also #ak.to_regular."
ak.argcartesian Moved: "All of the parameters for #ak.cartesian apply equally…"
ak.broadcast_arrays Moved: the single-item-per-element discussion (with its :: blocks), the broadcasting-rules bullet list, and the "aware of the distinction" paragraph.
ak.broadcast_fields No change — Examples: contains only a doctest.
ak.cartesian Moved: the output-order, "group by", and index-positions paragraphs.
ak.combinations Moved: the index-positions paragraph (parallel to ak.cartesian).
ak.pad_none Moved: the clip behavior note (with its bullet list) and the variable-length caveat.
ak.ravel Moved: the missing-values note referencing #ak.flatten.
ak.unflatten Moved: the axis note, the partition caveat, and "See also #ak.num and #ak.flatten."
ak.unzip No change — both prose paragraphs directly introduce the snippets they precede.
ak.zip Moved: the depth_limit=1 advice.
ak.zip_no_broadcast Moved: "See also #ak.zip and #ak.unzip."

Drafts were generated with Claude Code and reviewed manually, per the process agreed for #3980.

Closes #4233. Refs #3980.

🤖 Generated with Claude Code

Per the Examples:-section checklist on scikit-hep#3980: narrative that describes
behavior, arguments, or history belongs above Args: in the extended
description; Examples: keeps only doctest walkthroughs and their
connecting prose; "See also" lines go directly above Args:.

Refs scikit-hep#3980.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions github-actions Bot added the type/docs PR title type: docs (set automatically) label Jul 23, 2026
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.03%. Comparing base (c4aab45) to head (3b8497a).

Additional details and impacted files
Files with missing lines Coverage Δ
src/awkward/operations/ak_argcartesian.py 83.33% <ø> (ø)
src/awkward/operations/ak_broadcast_arrays.py 100.00% <ø> (ø)
src/awkward/operations/ak_cartesian.py 92.24% <ø> (ø)
src/awkward/operations/ak_combinations.py 88.46% <ø> (ø)
src/awkward/operations/ak_copy.py 100.00% <ø> (ø)
src/awkward/operations/ak_from_buffers.py 94.44% <ø> (ø)
src/awkward/operations/ak_from_feather.py 100.00% <ø> (ø)
src/awkward/operations/ak_from_json.py 94.03% <ø> (ø)
src/awkward/operations/ak_from_regular.py 94.11% <ø> (ø)
src/awkward/operations/ak_pad_none.py 100.00% <ø> (ø)
... and 5 more

@TaiSakuma
TaiSakuma requested review from ariostas and ianna July 23, 2026 17:42
@github-actions

Copy link
Copy Markdown

The documentation preview is ready to be viewed at http://preview.awkward-array.org.s3-website.us-east-1.amazonaws.com/PR4234

@ianna ianna left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TaiSakuma - Thanks! It looks better IMHO. Please go ahead and merge it. Thanks.

@TaiSakuma
TaiSakuma merged commit eae50c8 into scikit-hep:main Jul 27, 2026
70 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/docs PR title type: docs (set automatically)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: description text placed under Examples: in some merged docstring conversions

2 participants