From a56c57887e25afeedc1aecf4389851a94d8b3ac8 Mon Sep 17 00:00:00 2001 From: Python Infra CI Date: Mon, 23 Nov 2026 03:49:06 +0000 Subject: [PATCH 1/2] docs: fix copy-pasted Returns description in MKLRandomState.logistic --- mkl_random/mklrand.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkl_random/mklrand.pyx b/mkl_random/mklrand.pyx index 61007904..dd4bacab 100644 --- a/mkl_random/mklrand.pyx +++ b/mkl_random/mklrand.pyx @@ -5189,7 +5189,7 @@ cdef class _MKLRandomState: Returns ------- samples : ndarray or scalar - where the values are all integers in [0, n]. + Drawn samples from the parameterized logistic distribution. See Also -------- From b25e8d47f0561da81dcb66f405a10e035c12f624 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Sat, 28 Nov 2026 12:22:58 +0100 Subject: [PATCH 2/2] docs: fix Returns descriptions of gumbel and hypergeometric 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)]. --- mkl_random/mklrand.pyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mkl_random/mklrand.pyx b/mkl_random/mklrand.pyx index dd4bacab..5190badd 100644 --- a/mkl_random/mklrand.pyx +++ b/mkl_random/mklrand.pyx @@ -5049,6 +5049,7 @@ cdef class _MKLRandomState: Returns ------- samples : ndarray or scalar + Drawn samples from the parameterized Gumbel distribution. See Also -------- @@ -6297,7 +6298,9 @@ cdef class _MKLRandomState: Returns ------- samples : ndarray or scalar - The values are all integers in [0, n]. + Drawn samples from the parameterized hypergeometric distribution. + The values are all integers in + ``[max(0, nsample - nbad), min(nsample, ngood)]``. See Also --------