gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes (GH-150677)

Use the directive "class" instead of "data" for ParamSpecArgs and ParamSpecKwargs.
This commit is contained in:
Bernát Gábor 2026-06-02 01:07:51 -07:00 committed by GitHub
parent bc055444e4
commit 35c314d2b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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