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

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

(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 efebc819ddaf7c..8f45a4f51c4a57 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -1880,7 +1880,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