Skip to content

Commit dd0b6d8

Browse files
committed
STY: Fix formatting
1 parent 517236f commit dd0b6d8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

arch/tests/unitroot/test_unitroot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
try:
2121
from statsmodels.tsa.stattools import _autolag
22-
except:
22+
except ImportError:
2323
from statsmodels.tsa.stattools._stattools import _autolag
2424

2525
from arch.unitroot import ADF, DFGLS, KPSS, PhillipsPerron, VarianceRatio, ZivotAndrews

arch/univariate/mean.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def forecast(
949949
"Due to backcasting and/or data availability start cannot be less "
950950
"than the index of the largest value in the right-hand-side "
951951
"variables used to fit the first observation. In this model, "
952-
"this value is {}.".format(max(0, earliest - 1))
952+
f"this value is {max(0, earliest - 1)}."
953953
)
954954
# Parse params
955955
params = np.asarray(params)

arch/univariate/volatility.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,7 @@ def _bootstrap_forecast(
508508
std_resid = resids / np.sqrt(sigma2)
509509
if start < self._min_bootstrap_obs:
510510
raise ValueError(
511-
"start must include more than {} "
512-
"observations".format(self._min_bootstrap_obs)
511+
f"start must include more than {self._min_bootstrap_obs} observations"
513512
)
514513
rng = BootstrapRng(std_resid, start, random_state=random_state).rng()
515514
return self._simulation_forecast(

0 commit comments

Comments
 (0)