From 535e89f8b4fd07841d1b0ebcd4c08ecba475f77d Mon Sep 17 00:00:00 2001 From: Jamie Date: Tue, 13 Apr 2021 10:08:18 -0400 Subject: [PATCH] help out linter --- .../portfolio_optimization/port_opt_helper.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gamestonk_terminal/portfolio_optimization/port_opt_helper.py b/gamestonk_terminal/portfolio_optimization/port_opt_helper.py index f8695de0bfa..407e20237c0 100644 --- a/gamestonk_terminal/portfolio_optimization/port_opt_helper.py +++ b/gamestonk_terminal/portfolio_optimization/port_opt_helper.py @@ -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())