]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-133551: Support t-strings in annotationlib (GH-133553) (#133628)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 8 May 2025 01:37:03 +0000 (03:37 +0200)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 01:37:03 +0000 (01:37 +0000)
commit9e1aa354aed03cff100b3ff0d1d6d13ecbb370ab
tree535894f0d84011af4c7900abf8cfc98b4d6d58fa
parentc39bc81b70cdd67b72a3c12cf2c6418414e266c9
[3.14] gh-133551: Support t-strings in annotationlib (GH-133553) (#133628)

gh-133551: Support t-strings in annotationlib (GH-133553)

I don't know why you'd use t-strings in annotations, but now if you do,
the STRING format will do a great job of recovering the source code.
(cherry picked from commit 90f476e0f8dbb3a8603f67200c2422fb098c166c)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Lib/annotationlib.py
Lib/test/.ruff.toml
Lib/test/test_annotationlib.py
Misc/NEWS.d/next/Library/2025-05-06-22-54-37.gh-issue-133551.rfy1tJ.rst [new file with mode: 0644]