help out linter

This commit is contained in:
Jamie
2021-04-13 10:08:18 -04:00
parent 7087fc8a0c
commit 535e89f8b4

View File

@@ -72,17 +72,13 @@ def display_weights(weights: dict):
def pie_chart_weights(weights: dict):
"""
Print weights in a nice format
Show a pie chart of holdings
Parameters
----------
weights: dict
weights to display. Keys are stocks. Values are either weights or values if -v specified
"""
def pie_label(label_input):
"""Function for autopct"""
return f"{label_input:.2f}"
if not weights:
return
stocks = list(weights.keys())