# Bug report ### Bug description: Currently t-strings are not recovered correctly in the STRING format in annotations: ``` >>> def f(x: t"a{int}"): pass ... >>> import annotationlib >>> annotationlib.get_annotations(f, format=annotationlib.Format.STRING) {'x': "Template(strings=('a', ''), interpolations=(Interpolation(int, 'int', None, ''),))"} ``` I think we can do better there. ### CPython versions tested on: 3.14 ### Operating systems tested on: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-133553 * gh-133628 * gh-133634 * gh-133636 <!-- /gh-linked-prs -->
Activity
pythongh-133551: Support t-strings in annotationlib
gh-133551: Support t-strings in annotationlib (#133553)
pythongh-133551: Support t-strings in annotationlib (pythonGH-133553)
[3.14] gh-133551: Support t-strings in annotationlib (GH-133553) (#13…
pythongh-133551: Skip annotationlib for now in ast roundtrip tests
gh-133551: Skip annotationlib for now in ast roundtrip tests (#133634)
pythongh-133551: Skip annotationlib for now in ast roundtrip tests (p…
[3.14] gh-133551: Skip annotationlib for now in ast roundtrip tests (G…
pythongh-133551: Support t-strings in annotationlib (python#133553)
pythongh-133551: Skip annotationlib for now in ast roundtrip tests (p…
pythongh-133551: Skip annotationlib for now in ast roundtrip tests (p…