Skip to content

Commit 9f93d6f

Browse files
Add intersphinx links for 3.13 typing features (#550)
1 parent c893401 commit 9f93d6f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Diff for: doc/index.rst

+11-4
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

@@ -843,6 +846,8 @@ Functions
843846

844847
.. function:: get_protocol_members(tp)
845848

849+
See :py:func:`typing.get_protocol_members`. In ``typing`` since 3.13.
850+
846851
Return the set of members defined in a :class:`Protocol`. This works with protocols
847852
defined using either :class:`typing.Protocol` or :class:`typing_extensions.Protocol`.
848853

@@ -878,6 +883,8 @@ Functions
878883

879884
.. function:: is_protocol(tp)
880885

886+
See :py:func:`typing.is_protocol`. In ``typing`` since 3.13.
887+
881888
Determine if a type is a :class:`Protocol`. This works with protocols
882889
defined using either :py:class:`typing.Protocol` or :class:`typing_extensions.Protocol`.
883890

0 commit comments

Comments
 (0)