Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
qianyun210603 committed Oct 2, 2023
1 parent e3dee30 commit 79c2d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlib/backtest/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def check_stock_suspended(
return cast(bool, idx_data.isna().all() or np.isclose(idx_data.data, 0).all())
else:
# it is single value, make sure is not None
return np.isnan(volume) or np.isclose(volume, 0)
return cast(bool, np.isnan(volume) or np.isclose(volume, 0))
else:
# if the stock is not in the stock list, then it is not tradable and regarded as suspended
return True
Expand Down

0 comments on commit 79c2d5a

Please sign in to comment.