finally figured out I needed to upgrade pyupgrade

This commit is contained in:
Jamie
2021-04-13 11:13:36 -04:00
parent ac27fe2da7
commit 67028bd6e2

View File

@@ -93,7 +93,7 @@ def pie_chart_weights(weights: dict):
sizes, labels=stocks, autopct="", textprops=dict(color="w")
)
for i, a in enumerate(autotexts):
a.set_text("{}".format(sizes[i]))
a.set_text(f"{sizes[i]}")
ax.axis("equal")
ax.legend(