From 17bb3eac52c7d077ef0789b9588703885f85220b Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 2 Jun 2026 10:14:43 +0200 Subject: [PATCH] [3.13] gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes (GH-150677) (GH-150765) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use the directive "class" instead of "data" for ParamSpecArgs and ParamSpecKwargs. (cherry picked from commit 35c314d2b7282e729c2d86716fc94e1fe38f25da) Co-authored-by: Bernát Gábor --- 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 c63375d048ae..b3cde1aca8f7 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -2163,8 +2163,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``, -- 2.47.3