]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-145194: Fix typing in re tokenizer example (GH-145198) (#148898)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Apr 2026 02:46:31 +0000 (04:46 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2026 02:46:31 +0000 (02:46 +0000)
(cherry picked from commit bd7352d8071dc00531f2c527977602729f2d3ec6)

Co-authored-by: Vikash Kumar <163628932+Vikash-Kumar-23@users.noreply.github.com>
Doc/library/re.rst

index efebc819ddaf7c16ec5e020d31bb478a37f1a5cd..8f45a4f51c4a57b730f759b86b91d35d4eb3998a 100644 (file)
@@ -1880,7 +1880,7 @@ successive matches::
 
     class Token(NamedTuple):
         type: str
-        value: str
+        value: int | float | str
         line: int
         column: int