Skip to content

docs: document variadic parameters with leading star - #3032

Merged
antonwolfy merged 2 commits into
masterfrom
docs/variadic-args-star
Aug 20, 2026
Merged

docs: document variadic parameters with leading star#3032
antonwolfy merged 2 commits into
masterfrom
docs/variadic-args-star

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Several docstrings documented variadic parameters without the leading */**, so the rendered type read like a single value rather than a sequence of arguments. This aligns them with the numpydoc convention (and with dpnp.broadcast / dpnp.broadcast_arrays / dpnp.broadcast_shapes, which already use *args).

Changes (documentation only, no behavior change):

  • apply_along_axis: args / kwargs -> *args / **kwargs
  • check_supported_arrays_type: arrays -> *arrays
  • _compute_res_dtype: arrays -> *arrays

Checklist

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

Several docstrings documented variadic parameters without the leading
`*`/`**`, so the type read like a single value rather than a sequence.
Align them with the numpydoc convention (as used by broadcast/broadcast_arrays):

- apply_along_axis: `args`/`kwargs` -> `*args`/`**kwargs`
- check_supported_arrays_type: `arrays` -> `*arrays`
- _compute_res_dtype: `arrays` -> `*arrays`
@antonwolfy antonwolfy added this to the 0.21.0 release milestone Aug 19, 2026
@antonwolfy antonwolfy self-assigned this Aug 19, 2026
@antonwolfy
antonwolfy marked this pull request as ready for review August 19, 2026 13:18
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Array API standard conformance tests for dpnp=0.21.0dev5=py314ha0e2e8e_6 ran successfully.
Passed: 1376
Failed: 1
Skipped: 5

@coveralls

coveralls commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 78.477%. remained the same — docs/variadic-args-star into master

@vlad-perevezentsev vlad-perevezentsev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM
Thank you @antonwolfy

@antonwolfy
antonwolfy merged commit d02ed45 into master Aug 20, 2026
99 of 106 checks passed
@antonwolfy
antonwolfy deleted the docs/variadic-args-star branch August 20, 2026 14:19
github-actions Bot added a commit that referenced this pull request Aug 20, 2026
Several docstrings documented variadic parameters without the leading
`*`/`**`, so the rendered type read like a single value rather than a
sequence of arguments. This aligns them with the numpydoc convention
(and with `dpnp.broadcast` / `dpnp.broadcast_arrays` /
`dpnp.broadcast_shapes`, which already use `*args`).

Changes (documentation only, no behavior change):

- `apply_along_axis`: `args` / `kwargs` -> `*args` / `**kwargs`
- `check_supported_arrays_type`: `arrays` -> `*arrays`
- `_compute_res_dtype`: `arrays` -> `*arrays` d02ed45
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.

3 participants