Skip to content

Commit ccb638c

Browse files
Update Doc/reference/datamodel.rst
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent 768ab89 commit ccb638c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/reference/datamodel.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,9 @@ methods. They are also created by the built-in :func:`slice` function.
18211821

18221822
.. versionadded:: 3.15
18231823

1824-
:func:`slice` now supports :ref:`subscription <subscriptions>`.
1824+
The :func:`slice` type now supports :ref:`subscription <subscriptions>`. For
1825+
example, ``slice[float]`` may be used in type annotations to indicate a slice
1826+
containing :type:`float` objects.
18251827

18261828
.. index::
18271829
single: start (slice object attribute)

0 commit comments

Comments
 (0)