You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b64265c
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: consolidate shared utility functions into models module (#50)
* refactor: consolidate shared utility functions into models module
Move convert_temp, temp_suffix, and display_name from their duplicated
private definitions across cli.py, tui/widgets.py, and
tui/temperature_screen.py into a single canonical location in
models.py. These are now public API functions re-exported from the
flameconnect package.
- convert_temp: was _convert_temp in 3 files, now single definition
- temp_suffix: was _temp_suffix with different signatures in cli.py
(list[Parameter]) and widgets.py (TempUnitParam | None), unified
to the cleaner TempUnitParam | None signature
- display_name: was _display_name in widgets.py, used across TUI
- Remove _find_temp_unit (replaced by _find_param with TempUnitParam)
- Add TempUnitParam overload to _find_param for type safety
- Update all source and test imports across 11 files
- Add new tests for the three public functions in test_models.py
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* style: fix ruff formatting (extra blank lines)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments