diff --git a/qlib/rl/order_execution/utils.py b/qlib/rl/order_execution/utils.py index 3610f432a..e3f7e2f33 100644 --- a/qlib/rl/order_execution/utils.py +++ b/qlib/rl/order_execution/utils.py @@ -18,7 +18,7 @@ def _get_common_infra( config: ExchangeConfig, trade_date: pd.Timestamp, codes: List[str], - cash_limit: Optional[float] = None, + cash_limit: float = None, ) -> CommonInfrastructure: # need to specify a range here for acceleration if cash_limit is None: