From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 2 Jun 2026 08:15:19 +0000 (+0200) Subject: [3.14] gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes (GH... X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=68a35a97859a56e051cdc00da5a11f1d05b81a41;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes (GH-150677) (GH-150764) Use the directive "class" instead of "data" for ParamSpecArgs and ParamSpecKwargs. (cherry picked from commit 35c314d2b7282e729c2d86716fc94e1fe38f25da) Co-authored-by: Bernát Gábor --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index c704521ab316..14d76e7b4558 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -2221,8 +2221,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``,