Skip to content

Commit 0a33221

Browse files
authored
gh-101100: Fix sphinx warnings in whatsnew/3.9 (#136163)
1 parent 2468aaf commit 0a33221

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

Doc/library/random.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ Alternative Generator
447447
Override this method in subclasses to customise the
448448
:meth:`~random.getrandbits` behaviour of :class:`!Random` instances.
449449

450+
.. method:: Random.randbytes(n)
451+
452+
Override this method in subclasses to customise the
453+
:meth:`~random.randbytes` behaviour of :class:`!Random` instances.
454+
450455

451456
.. class:: SystemRandom([seed])
452457

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,5 @@ Doc/whatsnew/3.5.rst
7373
Doc/whatsnew/3.6.rst
7474
Doc/whatsnew/3.7.rst
7575
Doc/whatsnew/3.8.rst
76-
Doc/whatsnew/3.9.rst
7776
Doc/whatsnew/3.10.rst
7877
Doc/whatsnew/3.11.rst

Doc/whatsnew/3.9.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ digests. It skips MD5 on platforms that block MD5 digest.
423423
fcntl
424424
-----
425425

426-
Added constants :const:`~fcntl.F_OFD_GETLK`, :const:`~fcntl.F_OFD_SETLK`
427-
and :const:`~fcntl.F_OFD_SETLKW`.
426+
Added constants :const:`!fcntl.F_OFD_GETLK`, :const:`!fcntl.F_OFD_SETLK`
427+
and :const:`!fcntl.F_OFD_SETLKW`.
428428
(Contributed by Donghee Na in :issue:`38602`.)
429429

430430
ftplib
@@ -644,7 +644,7 @@ attribute.
644644
random
645645
------
646646

647-
Added a new :attr:`random.Random.randbytes` method: generate random bytes.
647+
Added a new :meth:`random.Random.randbytes` method: generate random bytes.
648648
(Contributed by Victor Stinner in :issue:`40286`.)
649649

650650
signal
@@ -776,7 +776,7 @@ Optimizations
776776
:pep:`590` vectorcall protocol.
777777
(Contributed by Donghee Na, Mark Shannon, Jeroen Demeyer and Petr Viktorin in :issue:`37207`.)
778778

779-
* Optimized :func:`~set.difference_update` for the case when the other set
779+
* Optimized :meth:`!set.difference_update` for the case when the other set
780780
is much larger than the base set.
781781
(Suggested by Evgeny Kapun with code contributed by Michele Orrù in :issue:`8425`.)
782782

@@ -1139,7 +1139,7 @@ Changes in the Python API
11391139
(Contributed by Christian Heimes in :issue:`36384`).
11401140

11411141
* :func:`codecs.lookup` now normalizes the encoding name the same way as
1142-
:func:`encodings.normalize_encoding`, except that :func:`codecs.lookup` also
1142+
:func:`!encodings.normalize_encoding`, except that :func:`codecs.lookup` also
11431143
converts the name to lower case. For example, ``"latex+latin1"`` encoding
11441144
name is now normalized to ``"latex_latin1"``.
11451145
(Contributed by Jordon Xu in :issue:`37751`.)

0 commit comments

Comments
 (0)