Visitar URL original
[docs] TypeVarTuple default is keyword-only by srittau 路 Pull Request #119215 路 python/cpython 路 GitHub
Skip to content
Merged
Changes from all commits
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
[docs] TypeVarTuple default is keyword-only
  • Loading branch information
srittau committed May 20, 2024
commit 8a7d53487269723e2bcd73e8615ced1f343ad2ea
2 changes: 1 addition & 1 deletion Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,7 @@ without the dedicated syntax, as documented below.

.. _typevartuple:

.. class:: TypeVarTuple(name, default=typing.NoDefault)
.. class:: TypeVarTuple(name, *, default=typing.NoDefault)

Type variable tuple. A specialized form of :ref:`type variable <typevar>`
that enables *variadic* generics.
Expand Down