Skip to content

Commit eff2016

Browse files
committed
CI: Fix minor mypy issue
1 parent 2074135 commit eff2016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtesting/backtesting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _format_name(name: str) -> str:
167167
raise ValueError(
168168
'Indicators must return (optionally a tuple of) numpy.arrays of same '
169169
f'length as `data` (data shape: {self._data.Close.shape}; indicator "{name}" '
170-
f'shape: {getattr(value, "shape" , "")}, returned value: {value})')
170+
f'shape: {getattr(value, "shape", "")}, returned value: {value})')
171171

172172
if plot and overlay is None and np.issubdtype(value.dtype, np.number):
173173
x = value / self._data.Close

0 commit comments

Comments
 (0)