Skip to content

docs: fix copy-pasted Returns descriptions in logistic, hypergeometric and gumbel - #215

Open
intel-python-devops wants to merge 3 commits into
masterfrom
chore/agentic-sweep-39
Open

intel-python-devops wants to merge 3 commits into
masterfrom
chore/agentic-sweep-39

Conversation

@intel-python-devops

@intel-python-devops intel-python-devops commented Nov 23, 2026 •

Copy link
Copy Markdown

Note

The first commit of this pull request is AI-generated. Please review thoroughly.

Fixes the Returns sections of three _MKLRandomState docstrings in mkl_random/mklrand.pyx that were copied from other distributions or left empty:

  • logistic: said the values are "all integers in [0, n]", copied from a discrete distribution such as binomial. The logistic distribution is continuous and unbounded and has no n parameter. It now says "Drawn samples from the parameterized logistic distribution."
  • hypergeometric: said the values are "all integers in [0, n]", but the function takes ngood, nbad and nsample, not n. It now describes the drawn samples and gives the real support, [max(0, nsample - nbad), min(nsample, ngood)].
  • gumbel: had no description of the returned samples. It now says "Drawn samples from the parameterized Gumbel distribution."

Only docstrings change: no code, signatures or seeded output are affected.

gumbel had no description for its return value, and hypergeometric said the values are integers in [0, n], copied from binomial, although the function has no n parameter. Describe the drawn samples and give the real support, [max(0, nsample - nbad), min(nsample, ngood)].
@antonwolfy antonwolfy changed the title docs: fix copy-pasted Returns description in MKLRandomState.logistic docs: fix copy-pasted Returns descriptions in logistic, hypergeometric and gumbel Nov 28, 2026

@antonwolfy antonwolfy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. I pushed a commit fixing the same kind of copy-pasted or missing Returns text in hypergeometric and gumbel, so all three descriptions now match what the functions return. Docstring-only change, so seeded output is unaffected.

@antonwolfy antonwolfy self-assigned this Nov 28, 2026

This branch has not been deployed

No deployments
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.

2 participants