Skip to content

docs: Correct the axis argument name in expand_dims - #4830

Merged
zcbenz merged 1 commit into
ml-explore:mainfrom
Redempt1onzzZZ:codex/docs-expand-dims-axis-4829
Nov 20, 2026
Merged

zcbenz merged 1 commit into
ml-explore:mainfrom
Redempt1onzzZZ:codex/docs-expand-dims-axis-4829

Conversation

@Redempt1onzzZZ

Copy link
Copy Markdown
Contributor

Fixes #4829.

Rename the expand_dims Args entry from axes to axis, matching the signature
and the accepted keyword. This changes only the parameter name in the docstring.

Validated with CPU source builds before and after the change. All eight
focused checks pass after the fix, including calls using the documented
keyword and comparisons with NumPy. Three existing squeeze/expand and axis
validation tests also pass, as does pre-commit run --all-files.

Rename the Args entry from axes to axis to match the signature and
accepted keyword.

Fixes ml-explore#4829
@Redempt1onzzZZ
Redempt1onzzZZ marked this pull request as ready for review November 9, 2026 02:16
@zcbenz zcbenz changed the title [docs] Correct the axis argument name in expand_dims docs: Correct the axis argument name in expand_dims Nov 20, 2026
@zcbenz
zcbenz merged commit 74b1d72 into ml-explore:main Nov 20, 2026
24 checks passed
rcfa pushed a commit to cubiculum-ai/mlx that referenced this pull request Nov 26, 2026
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.

[BUG] mx.expand_dims docs: the Args section names axes, but the parameter is axis

2 participants