Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Fix some docstrings that crash pdf generation. #19342

Merged
merged 1 commit into from Jun 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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