Skip to content

Commit

Permalink
Fix mypy typecheck errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
edtechre committed Nov 15, 2024
1 parent 4a57309 commit a67422a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pybroker/indicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def _to_bar_data(df: pd.DataFrame) -> BarData:
df[col.value].to_numpy() if col.value in df.columns else None
)
for col in (DataCol.VOLUME, DataCol.VWAP)
},
}, # type: ignore[arg-type]
**{
col: df[col].to_numpy() if col in df.columns else None
for col in StaticScope.instance().custom_data_cols
},
}, # type: ignore[arg-type]
)


Expand Down

0 comments on commit a67422a

Please sign in to comment.