gh-125897: Mark range function parameters as positional only (#125945)

This commit is contained in:
Konstantin Baikov 2025-08-12 01:12:55 +02:00 committed by GitHub
parent 362692852f
commit 0c83daaf45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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