]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-145194: Fix typing in re tokenizer example (#145198)
authorVikash Kumar <163628932+Vikash-Kumar-23@users.noreply.github.com>
Thu, 23 Apr 2026 02:40:10 +0000 (08:10 +0530)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2026 02:40:10 +0000 (19:40 -0700)
Doc/library/re.rst

index 6ed285c4b112135e9690f2abff38937bb5c534fd..a46fd42458158cf38b8e3429b0b8553dd00e0171 100644 (file)
@@ -1953,7 +1953,7 @@ successive matches::
 
     class Token(NamedTuple):
         type: str
-        value: str
+        value: int | float | str
         line: int
         column: int