Re:We fixed f-string typos in popular Python repos
by johnny_castaway on Friday April 29, 2022 @03:55PM
(#31209915)
This may be also caused by confusing syntax highlighting in some editors, for example in VSCode [1]
The variable in the second string gets highlighted (with slightly different color, but still) because it would still work with `str.format()`. GitHub doesn't seem to do this.
The variable in the second string gets highlighted (with slightly different color, but still) because it would still work with `str.format()`. GitHub doesn't seem to do this.
[1] https://imgur.com/a/9KGWVG0