Skip to content

Commit a6ab00f

Browse files
committed
chore: fix pylint error in CI
1 parent b8b4fd5 commit a6ab00f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

qlib/contrib/strategy/signal_strategy.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,12 +619,10 @@ def get_last_n(li, n):
619619
def filter_stock(li):
620620
return li
621621

622-
import copy as _copy # local alias for deepcopy
623-
624622
# Use instance configuration; keep behavior unchanged (no external kwargs expected here)
625-
risk_aversion = _copy.deepcopy(getattr(self, "risk_aversion", None))
623+
risk_aversion = copy.deepcopy(getattr(self, "risk_aversion", None))
626624

627-
current_temp: Position = _copy.deepcopy(self.trade_position)
625+
current_temp: Position = copy.deepcopy(self.trade_position)
628626

629627
# Build current long/short lists by sign of amount
630628
current_stock_list = current_temp.get_stock_list()

0 commit comments

Comments
 (0)