We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 768ab89 commit ccb638cCopy full SHA for ccb638c
Doc/reference/datamodel.rst
@@ -1821,7 +1821,9 @@ methods. They are also created by the built-in :func:`slice` function.
1821
1822
.. versionadded:: 3.15
1823
1824
- :func:`slice` now supports :ref:`subscription <subscriptions>`.
+ 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.
1827
1828
.. index::
1829
single: start (slice object attribute)
0 commit comments