]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 2 Jun 2026 08:16:05 +0000 (10:16 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 08:16:05 +0000 (08:16 +0000)
Use the directive "class" instead of "data" for ParamSpecArgs and ParamSpecKwargs.
(cherry picked from commit 35c314d2b7282e729c2d86716fc94e1fe38f25da)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
Doc/library/typing.rst

index b2167cbc63a1ffdcf92238fef6d22cdd8942eb6b..ef6016d45c1f8bc67824060781c9c3d32e2c5910 100644 (file)
@@ -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``,