]> Piment Noir Git Repositories - freqai-strategies.git/commit
refactor: replace hardcoded string literals with tuple constant references
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 3 Jan 2026 21:55:40 +0000 (22:55 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 3 Jan 2026 21:55:40 +0000 (22:55 +0100)
commit6ac7f6f9eff4cdd9cbb9d5d4b2f76526e690a2c9
tree125fa7179d16c00143341769a9c29075751fa8a0
parent69841c859496055682d6692a7a1505c5d0db7727
refactor: replace hardcoded string literals with tuple constant references

Replace 8 hardcoded string literal comparisons with proper tuple constant
references using CONSTANT[index] pattern:

- _DENSITY_AGGREGATIONS: 'quantile' and 'power_mean' comparisons (2 fixes)
- _DISTANCE_METHODS: 'topsis' and 'compromise_programming' comparisons (6 fixes)

This improves type safety, maintainability, and ensures consistency with
the codebase's established constant usage patterns.
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py