Skip to content

Commit

Permalink
Update qlib/contrib/strategy/rule_strategy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
you-n-g authored Dec 26, 2024
1 parent 30feefb commit 116c867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlib/contrib/strategy/rule_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def __init__(
if instruments is None:
warnings.warn("`instruments` is not set, will load all stocks")
self.instruments = "all"
if isinstance(instruments, str):
elif isinstance(instruments, str):
self.instruments = D.instruments(instruments)
elif isinstance(instruments, List):
self.instruments = instruments
Expand Down

0 comments on commit 116c867

Please sign in to comment.