From 26e2f2c52625401e3e4f3b5e9d8bfb92e06a4945 Mon Sep 17 00:00:00 2001 From: kbaikov Date: Fri, 25 Oct 2024 00:44:57 +0200 Subject: [PATCH] gh-125897: Fix the range function refering to step as a kwarg Addresses the #125897 documentation discrepancy that the range function accepts step as a kwarg --- Doc/library/functions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 290c63827ff766..b9570f26d9ac79 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1713,8 +1713,8 @@ are always available. They are listed here in alphabetical order. .. _func-range: -.. class:: range(stop) - range(start, stop, step=1) +.. class:: range(stop, /) + range(start, stop, step=1, /) :noindex: Rather than being a function, :class:`range` is actually an immutable