mirror of
https://github.com/python/cpython.git
synced 2026-06-08 02:41:11 +00:00
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:
parent
bc055444e4
commit
35c314d2b7
1 changed files with 2 additions and 2 deletions
|
|
@ -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``,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue