From 45ea51ad20531ee1e2ca7e4268ec92ec8a650688 Mon Sep 17 00:00:00 2001 From: Konstantin Baikov Date: Tue, 12 Aug 2025 01:12:55 +0200 Subject: [PATCH] gh-125897: Mark range function parameters as positional only (GH-125945) (cherry picked from commit 0c83daaf458389517989bc28625e8ba8cf24e651) Co-authored-by: Konstantin Baikov --- 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 80bd1275973f8d..db0e3fc9f9b8d5 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1729,8 +1729,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