Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in f-strings not working when whitespaces surround the variab…
…le. (Issue #6629, PR #6679) # Description Fix bug in f-strings where surrounding a variable with spaces would result in a variable not found error closes #6629 # Self Check: Strike through any lines that are not applicable (`~~line~~`) then check the box - [ ] Attached issue to pull request - [ ] Changelog entry - [ ] Type annotations are present - [ ] Code is clear and sufficiently documented - [ ] No (preventable) type errors (check using make mypy or make mypy-diff) - [ ] Sufficient test cases (reproduces the bug/tests the requested feature) - [ ] Correct, in line with design - [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: ) - [ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)
- Loading branch information
1 parent
891ec95
commit 998564a
Showing
5 changed files
with
111 additions
and
41 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
changelogs/unreleased/6629-f-strings-do-not-trim-whitespaces.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: Fix bug in f-strings not working when whitespaces surround the variable. | ||
issue-nr: 6629 | ||
change-type: patch | ||
destination-branches: [master, iso6] | ||
sections: | ||
bugfix: "{{description}}" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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