]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes (GH-150677)
authorBernát Gábor <gaborjbernat@gmail.com>
Tue, 2 Jun 2026 08:07:51 +0000 (01:07 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 08:07:51 +0000 (11:07 +0300)
Use the directive "class" instead of "data" for ParamSpecArgs and ParamSpecKwargs.

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``,