Skip to content

Commit 2123daa

Browse files
committed
Add intersphinx links for 3.13 typing features
1 parent 3218d77 commit 2123daa

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

doc/index.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Special typing primitives
255255

256256
.. data:: NoDefault
257257

258-
See :py:class:`typing.NoDefault`. In ``typing`` since 3.13.0.
258+
See :py:data:`typing.NoDefault`. In ``typing`` since 3.13.
259259

260260
.. versionadded:: 4.12.0
261261

@@ -341,7 +341,9 @@ Special typing primitives
341341

342342
.. data:: ReadOnly
343343

344-
See :pep:`705`. Indicates that a :class:`TypedDict` item may not be modified.
344+
See :py:data:`typing.ReadOnly` and :pep:`705`. In ``typing`` since 3.13.
345+
346+
Indicates that a :class:`TypedDict` item may not be modified.
345347

346348
.. versionadded:: 4.9.0
347349

@@ -379,8 +381,9 @@ Special typing primitives
379381

380382
.. data:: TypeIs
381383

382-
See :pep:`742`. Similar to :data:`TypeGuard`, but allows more type narrowing.
383-
In ``typing`` since 3.13.
384+
See :py:data:`typing.TypeIs` and :pep:`742`. In ``typing`` since 3.13.
385+
386+
Similar to :data:`TypeGuard`, but allows more type narrowing.
384387

385388
.. versionadded:: 4.10.0
386389

@@ -878,6 +881,8 @@ Functions
878881

879882
.. function:: is_protocol(tp)
880883

884+
See :py:func:`typing.is_protocol`. In ``typing`` since 3.13.
885+
881886
Determine if a type is a :class:`Protocol`. This works with protocols
882887
defined using either :py:class:`typing.Protocol` or :class:`typing_extensions.Protocol`.
883888

0 commit comments

Comments
 (0)