Bug report
Bug description:
The error message is TypeError: 'str' object is not callable, but the highlighted error line has no calls.
class MyClass:
@property
def __str__(self):
return "MyClass"
obj = MyClass()
print(f"Hello, {obj}")
Traceback (most recent call last):
File "<string>", line 9, in <module>
print(f"Hello, {obj}")
^^^^^
TypeError: 'str' object is not callable
CPython versions tested on:
3.14
Operating systems tested on:
Windows