Skip to content

Remove unused imports in dsc/decoder.py - #249

Open
Poid-ZA wants to merge 1 commit into
smittix:mainfrom
Poid-ZA:fix/dsc-decoder-lint
Open

Poid-ZA wants to merge 1 commit into
smittix:mainfrom
Poid-ZA:fix/dsc-decoder-lint

Conversation

@Poid-ZA

@Poid-ZA Poid-ZA commented Aug 11, 2026

Copy link
Copy Markdown

Summary

  • `ruff check` flagged 4 unused imports (`DISTRESS_NATURE_CODES`, `FORMAT_CODES`, `MIN_SYMBOLS_FOR_FORMAT`, `TELECOMMAND_FORMATS`) plus 2 F811 redefinition warnings for `VALID_EOS` in `utils/dsc/decoder.py`, unrelated to any feature work — pre-existing lint dirt.
  • No behavior change: the local `VALID_EOS = {117, 122, 127}` assignments were already the values in use; only the now-redundant module-level import is removed.

Test plan

  • `ruff check .` — all checks pass
  • `pytest -k dsc` — 80 passed

🤖 Generated with Claude Code

ruff flagged 4 unused imports from .constants and 2 F811
local-variable redefinitions of VALID_EOS that were only unused
because of the stale import shadowing it. No behavior change —
utils/dsc test suite (80 tests) still passes.
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.

1 participant