]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[docs] TypeVarTuple default is keyword-only (#119215)
authorSebastian Rittau <srittau@rittau.biz>
Mon, 20 May 2024 15:31:45 +0000 (17:31 +0200)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 15:31:45 +0000 (15:31 +0000)
Doc/library/typing.rst

index 2df2faeaf39bd0f10dd7bc9452d4491b46ca0910..a8068609fcfbe797657394b6b008fd1e3b15a383 100644 (file)
@@ -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.