4 ms·
Debate around the usefulness aside, are there any linter rules for warning about f-strings in light of this? I can easily see where mistaking one for the other
by pragma_x 1y ago
Debate around the usefulness aside, are there any linter rules for warning about f-strings in light of this? I can easily see where mistaking one for the other would cause problems. For context, I'm thinking specifically about tools like Black and MyPy.
- sanderjd 1y agoThis will be trivial to implement (it is just a check against the type that t-strings return), so I'm sure it will be done, if it hasn't already.
- xixixao 1y agoThe runtime and static type of the template string is different to fstring (Template vs str). Unless you’re passing them somewhere that accepts strings, you can’t go wrong. I actually quite like the simplicity of this design over tagged literals in JS.