Skip to content

Commit

Permalink
STY: Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtage committed Jan 8, 2025
1 parent 517236f commit dd0b6d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/tests/unitroot/test_unitroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

try:
from statsmodels.tsa.stattools import _autolag
except:
except ImportError:
from statsmodels.tsa.stattools._stattools import _autolag

from arch.unitroot import ADF, DFGLS, KPSS, PhillipsPerron, VarianceRatio, ZivotAndrews
Expand Down
2 changes: 1 addition & 1 deletion arch/univariate/mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ def forecast(
"Due to backcasting and/or data availability start cannot be less "
"than the index of the largest value in the right-hand-side "
"variables used to fit the first observation. In this model, "
"this value is {}.".format(max(0, earliest - 1))
f"this value is {max(0, earliest - 1)}."
)
# Parse params
params = np.asarray(params)
Expand Down
3 changes: 1 addition & 2 deletions arch/univariate/volatility.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,7 @@ def _bootstrap_forecast(
std_resid = resids / np.sqrt(sigma2)
if start < self._min_bootstrap_obs:
raise ValueError(
"start must include more than {} "
"observations".format(self._min_bootstrap_obs)
f"start must include more than {self._min_bootstrap_obs} observations"
)
rng = BootstrapRng(std_resid, start, random_state=random_state).rng()
return self._simulation_forecast(
Expand Down

0 comments on commit dd0b6d8

Please sign in to comment.