8000 bpo-43783: add ParamSpecArgs/Kwargs by JelleZijlstra · Pull Request #25298 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-43783: add ParamSpecArgs/Kwargs #25298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 11, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Doc/library/typing.rst
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
  • Loading branch information
JelleZijlstra and Fidget-Spinner authored Apr 9, 2021
commit dc0cc33557fdccbf74fb28187394a9525170f0a1
3 changes: 2 additions & 1 deletion Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,8 @@ These are not used in annotations. They are building blocks for creating generic

Arguments and keyword arguments attributes of a :class:`ParamSpec`. The
``P.args`` attribute of a ``ParamSpec`` is an instance of ``ParamSpecArgs``,
and ``P.kwargs`` is an instance of ``ParamSpecKwargs``.
and ``P.kwargs`` is an instance of ``ParamSpecKwargs``. They are intended
for runtime introspection and have no special meaning to static type checkers.

Calling :func:`get_origin` on either of these objects will return the
original ``ParamSpec``::
Expand Down
0