How are fstrings implemented in Python? I'm looking at the types via my IDE for strings and fstring variables have the same inferred type, str. Is it a whole new class or implementing the same interface as string? An explanation of how it works would be great.
The reason I ask is because I want to evaluate if it would be reasonable for us to implement our version. Additionally, would it be possible to do it in such a way that IDEs would be able to infer different types based on the letter.