Skip to content

fix: correct MessageData.get_latency return type annotation (Issue #13)#37

Open
lbedogni wants to merge 4 commits into
mainfrom
agile-sync-20260627-2004
Open

fix: correct MessageData.get_latency return type annotation (Issue #13)#37
lbedogni wants to merge 4 commits into
mainfrom
agile-sync-20260627-2004

Conversation

@lbedogni

Copy link
Copy Markdown
Collaborator

Fixes #13 - Corrected return type annotation from tuple[float, dict] to float to match actual implementation.

  • Fixed type annotation in src/server/communication/message_data.py
  • Added tests/unit/test_message_data_types.py with 3 verification tests
  • All tests pass: 29 tests in fast CI lane

- Added SCIOT-028 for configurable EMA alpha (Issue #9)
- Added SCIOT-029 for structured logging (Issue #12)
- Added SCIOT-030 for type annotations (Issue #13)
- Added missing stories for Issues #3, #6, #10, #11, #16, #19, #21, #23
- Updated SCIOT-026 notes to reference Issue #8

Closes #1 #2 #4 #5 #7 #14 #15 #17 #18 #20 #33 #35 #36
Fixed return type annotation from tuple[float, dict] to float to match
actual implementation. Added type-checking tests to verify the annotation
and return value consistency.

- Fixed type annotation in src/server/communication/message_data.py
- Added tests/unit/test_message_data_types.py with 3 verification tests
- SCIOT-030 marked as DONE in AGILE_ACTION_PLAN.md
…ues #9, #12)

- Replace remaining print() calls in http_server.py with logger
- Add load_offloading_algo_config() consumer function in request_handler.py
- Replace hardcoded alpha=0.5 with configured ema_alpha value
- Add test_ema_alpha_configuration_validation test for validation

These changes complete SCIOT-041 (ema_alpha configurable) and advance SCIOT-044 (print to logger).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix type annotation of MessageData.get_latency

2 participants