mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 13:32:08 +00:00
help out linter
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user