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

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

index 6ee52c6927d91fad7889cb5abfc3f3cdb8f5e788..5b8d9cdc671abdad050a09adcd00250773ba630b 100644 (file)
@@ -1883,7 +1883,7 @@ successive matches::
 
     class Token(NamedTuple):
         type: str
-        value: str
+        value: int | float | str
         line: int
         column: int