diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2021-06-24 10:38:24 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-24 10:38:24 -0600 |
| commit | 764662504a233ce218543aae3257dafdaa39e4f0 (patch) | |
| tree | 7a0c6ffb9f326f95ce7085b5014fc0de36833eab /numpy/random | |
| parent | 5d38358cce289113673475daef16049a7ff0c153 (diff) | |
| parent | e07584a1cdb84781c22e90af9ab001d9f1d27f08 (diff) | |
| download | numpy-764662504a233ce218543aae3257dafdaa39e4f0.tar.gz | |
Merge pull request #19306 from charris/fix-doc-pdf-build
DOC: Fix some docstrings that crash pdf generation.
Diffstat (limited to 'numpy/random')
| -rw-r--r-- | numpy/random/_generator.pyx | 2 | ||||
| -rw-r--r-- | numpy/random/mtrand.pyx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx index cd0b24872..e2430d139 100644 --- a/numpy/random/_generator.pyx +++ b/numpy/random/_generator.pyx @@ -585,7 +585,7 @@ cdef class Generator: Examples -------- >>> np.random.default_rng().bytes(10) - b'\xfeC\x9b\x86\x17\xf2\xa1\xafcp' # random + b'\\xfeC\\x9b\\x86\\x17\\xf2\\xa1\\xafcp' # random """ cdef Py_ssize_t n_uint32 = ((length - 1) // 4 + 1) diff --git a/numpy/random/mtrand.pyx b/numpy/random/mtrand.pyx index 863879a04..4f5862faa 100644 --- a/numpy/random/mtrand.pyx +++ b/numpy/random/mtrand.pyx @@ -795,7 +795,7 @@ cdef class RandomState: Examples -------- >>> np.random.bytes(10) - ' eh\\x85\\x022SZ\\xbf\\xa4' #random + b' eh\\x85\\x022SZ\\xbf\\xa4' #random """ cdef Py_ssize_t n_uint32 = ((length - 1) // 4 + 1) # Interpret the uint32s as little-endian to convert them to bytes |
