Skip to content

Commit

Permalink
Merge pull request #19342 from charris/fix-doc-pdf-build
Browse files Browse the repository at this point in the history
DOC: Fix some docstrings that crash pdf generation.
  • Loading branch information
charris committed Jun 25, 2021
2 parents 0e0d490 + 937c494 commit 82ba6c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion numpy/random/_generator.pyx
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion numpy/random/mtrand.pyx
Expand Up @@ -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
Expand Down

0 comments on commit 82ba6c6

Please sign in to comment.