Skip to content

Commit

Permalink
minor code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmartin8 committed Dec 1, 2024
1 parent 794029d commit 7257dda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pypfopt/discrete_allocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
The ``discrete_allocation`` module contains the ``DiscreteAllocation`` class, which
offers multiple methods to generate a discrete portfolio allocation from continuous weights.
"""

import collections

import cvxpy as cp
Expand Down
2 changes: 1 addition & 1 deletion pypfopt/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _plot_cla(cla, points, ax, show_assets, show_tickers, interactive):
mode="markers",
name="Max Sharpe Portfolio",
marker=dict(size=12, symbol="x", color="coral"),
hovertemplate=f"Sharpe: %{{customdata[1]:.4}}<br>" + hovertemplate,
hovertemplate="Sharpe: %{{customdata[1]:.4}}<br>" + hovertemplate,
)
)
else:
Expand Down

0 comments on commit 7257dda

Please sign in to comment.