]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46747: Add missing key parameters in the bisect docs (GH-31323)
authorZackery Spytz <zspytz@gmail.com>
Mon, 14 Feb 2022 16:16:49 +0000 (08:16 -0800)
committerGitHub <noreply@github.com>
Mon, 14 Feb 2022 16:16:49 +0000 (11:16 -0500)
Added *key* parameter to `bisect.bisect()` and `bisect.insort()` in bisect module docs.

Doc/library/bisect.rst

index f34ee175ba657433ce5c2bce266cb0fd3d28c400..edcd4aeb24aa7e877ad4adcd23edf15c1c08b009 100644 (file)
@@ -43,7 +43,7 @@ The following functions are provided:
 
 
 .. function:: bisect_right(a, x, lo=0, hi=len(a), *, key=None)
-              bisect(a, x, lo=0, hi=len(a))
+              bisect(a, x, lo=0, hi=len(a), *, key=None)
 
    Similar to :func:`bisect_left`, but returns an insertion point which comes
    after (to the right of) any existing entries of *x* in *a*.
@@ -80,7 +80,7 @@ The following functions are provided:
 
 
 .. function:: insort_right(a, x, lo=0, hi=len(a), *, key=None)
-              insort(a, x, lo=0, hi=len(a))
+              insort(a, x, lo=0, hi=len(a), *, key=None)
 
    Similar to :func:`insort_left`, but inserting *x* in *a* after any existing
    entries of *x*.