Skip to content

Commit

Permalink
[docs] TypeVarTuple default is keyword-only (pythonGH-119215)
Browse files Browse the repository at this point in the history
(cherry picked from commit e406b39)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
  • Loading branch information
srittau authored and miss-islington committed May 20, 2024
1 parent a52ed7e commit cdb4fa8
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit cdb4fa8

Please sign in to comment.