From: Bernát Gábor Date: Tue, 2 Jun 2026 08:07:51 +0000 (-0700) Subject: gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes (GH-150677) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=35c314d2b7282e729c2d86716fc94e1fe38f25da;p=thirdparty%2FPython%2Fcpython.git gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes (GH-150677) Use the directive "class" instead of "data" for ParamSpecArgs and ParamSpecKwargs. --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index b2167cbc63a1..ef6016d45c1f 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``,