https://github.com/python/cpython/commit/3c71d3654e285ec84391b34266d0175e294a222c
commit: 3c71d3654e285ec84391b34266d0175e294a222c
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2026-04-23T02:45:46Z
summary:

[3.14] gh-145194: Fix typing in re tokenizer example (GH-145198) (#148897)

(cherry picked from commit bd7352d8071dc00531f2c527977602729f2d3ec6)

Co-authored-by: Vikash Kumar 
<[email protected]>

files:
M Doc/library/re.rst

diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 6ee52c6927d91f..5b8d9cdc671abd 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -1883,7 +1883,7 @@ successive matches::
 
     class Token(NamedTuple):
         type: str
-        value: str
+        value: int | float | str
         line: int
         column: int
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to