From 3be60cb26e76d5047fc0486ea730cf239711fa54 Mon Sep 17 00:00:00 2001 From: Thomas Schmelzer Date: Mon, 30 Dec 2024 23:34:25 +0400 Subject: [PATCH] fmt --- cvx/simulator/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvx/simulator/builder.py b/cvx/simulator/builder.py index d2d9868b..ec28627b 100644 --- a/cvx/simulator/builder.py +++ b/cvx/simulator/builder.py @@ -113,7 +113,7 @@ def current_prices(self) -> np.array: """ return self._state.prices[self._state.assets].values - def __iter__(self) -> Generator[tuple[pd.DatetimeIndex, State], None, None]: + def __iter__(self) -> Generator[tuple[pd.DatetimeIndex, State]]: """ The __iter__ method allows the object to be iterated over in a for loop, yielding time and the current state of the portfolio.