Repository navigation
Fix rename offsets in Python 3.14 t-strings - #915
Merged
lieryan merged 3 commits intoNov 28, 2026
Merged
Conversation
sean0407
force-pushed
the
fix/python-rope-913-tstring-offsets
branch
from
October 24, 2026 07:41
a5d06f2 to
20d5e40
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #915 +/- ##
=======================================
Coverage 95.45% 95.45%
=======================================
Files 134 134
Lines 26926 26932 +6
=======================================
+ Hits 25702 25708 +6
Misses 1224 1224 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
lieryan
force-pushed
the
fix/python-rope-913-tstring-offsets
branch
from
November 28, 2026 15:27
b83865e to
fb7d7ed
Compare
t-string is new syntax available since Python 3.14 and higher
lieryan
force-pushed
the
fix/python-rope-913-tstring-offsets
branch
from
November 28, 2026 15:28
fb7d7ed to
4bdd112
Compare
lieryan
enabled auto-merge
November 28, 2026 15:28
Member
|
Thank you for fixing this issue, @sean0407. @allcontributors please add @sean0407 for code contribution |
Contributor
|
I've put up a pull request to add @sean0407! 🎉 |
This was referenced Nov 30, 2026
Merged
marlon-costa-dc
added a commit
to marlon-costa-dc/rope
that referenced
this pull request
Dec 1, 2026
Drop the entries inserted into the released 1.15.2+dc.6 section; python-rope#915 is already credited under dc.11 and python-rope#906 becomes changelog.d/906.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #913.
Evidence
aindef h():\n a = 1\n f(t"{a}(", ")")producest"{ab}(":real_codeblanks the t-string interpolation and the string-prefix pattern does not recognizet.t/Tand preserves t-string text during offset analysis. The added regression asserts that renaming updates the definition and interpolation without moving the surrounding punctuation.git diff --check, and repository patch policy passed (3 text files, 13 changed lines). The regression test and upstream suite were not run locally; the reproduction is issue-supplied and the fix was reviewed statically.Merge Danger
Door: Two-way
Blast Radius: Narrow
Only Python string-prefix recognition and rename offset analysis change; reverting the patch restores prior behavior.