]> Piment Noir Git Repositories - freqai-strategies.git/commit
style(weights): use !r repr for strategy in compute_label_weights ValueError
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 25 May 2026 12:01:55 +0000 (14:01 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 25 May 2026 12:01:55 +0000 (14:01 +0200)
commit66707084ba9d5d94108b90bc288f23a8f4fa35aa
treec79705cdcc831db5f946ac2ed64c8a3aaf49d882
parent1d86add40e64d5e2fb6c917567f9bd8b5cabac1c
style(weights): use !r repr for strategy in compute_label_weights ValueError

Replace hardcoded 'none' literal with f"{strategy!r}" to match the
codebase convention of !r-formatting external string identifiers in
error messages and avoid silent drift if WEIGHT_STRATEGIES[0] changes.
quickadapter/user_data/strategies/Utils.py