Skip to content

Commit 7257dda

Browse files
committed
minor code formatting
1 parent 794029d commit 7257dda

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pypfopt/discrete_allocation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
The ``discrete_allocation`` module contains the ``DiscreteAllocation`` class, which
33
offers multiple methods to generate a discrete portfolio allocation from continuous weights.
44
"""
5+
56
import collections
67

78
import cvxpy as cp

pypfopt/plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def _plot_cla(cla, points, ax, show_assets, show_tickers, interactive):
174174
mode="markers",
175175
name="Max Sharpe Portfolio",
176176
marker=dict(size=12, symbol="x", color="coral"),
177-
hovertemplate=f"Sharpe: %{{customdata[1]:.4}}<br>" + hovertemplate,
177+
hovertemplate="Sharpe: %{{customdata[1]:.4}}<br>" + hovertemplate,
178178
)
179179
)
180180
else:

0 commit comments

Comments
 (0)