Meu código:
class Conta():
def __init__(self):
print("Construindo objeto...")
Erro:
>>> from conta import Conta
>>> conta = Conta()
Construindo objeto...{}
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Suporte\Documents\repo\testpy\conta.py", line 3, in __init__
print("Construindo objeto...")
AttributeError: 'NoneType' object has no attribute 'format'