https://github.com/python/cpython/commit/bd7352d8071dc00531f2c527977602729f2d3ec6
commit: bd7352d8071dc00531f2c527977602729f2d3ec6
branch: main
author: Vikash Kumar <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2026-04-22T19:40:10-07:00
summary:

gh-145194: Fix typing in re tokenizer example (#145198)

files:
M Doc/library/re.rst

diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 6ed285c4b11213..a46fd42458158c 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -1953,7 +1953,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