https://github.com/python/cpython/commit/35c314d2b7282e729c2d86716fc94e1fe38f25da
commit: 35c314d2b7282e729c2d86716fc94e1fe38f25da
branch: main
author: Bernát Gábor <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-06-02T11:07:51+03:00
summary:

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

Use the directive "class" instead of "data" for ParamSpecArgs and 
ParamSpecKwargs.

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index b2167cbc63a1ff..ef6016d45c1f8b 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``,

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to