From cc59bf0bff747705717f8a2c5c0123bef451dba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Sun, 31 May 2026 10:05:32 -0700 Subject: [PATCH] gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes ParamSpecArgs and ParamSpecKwargs are classes (the runtime types of the args and kwargs attributes of a ParamSpec), but were documented with the ".. data::" directive. The existing ":class:`ParamSpecArgs`" and ":class:`ParamSpecKwargs`" cross-references in the typing docs and the 3.10 What's New page therefore fail to resolve against a py:class target. Switch the stacked entry to ".. class::" so the references resolve. --- Doc/library/typing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index b2167cbc63a1ffd..ef6016d45c1f8bc 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -2292,8 +2292,8 @@ without the dedicated syntax, as documented below. * :data:`Concatenate` * :ref:`annotating-callables` -.. data:: ParamSpecArgs - ParamSpecKwargs +.. class:: ParamSpecArgs + ParamSpecKwargs Arguments and keyword arguments attributes of a :class:`ParamSpec`. The ``P.args`` attribute of a ``ParamSpec`` is an instance of ``ParamSpecArgs``,