Skip to content

chore: remove stale # lgtm suppression comments from pipeline.py overloads - #29

Merged
Pascal-ZeGerman merged 1 commit into
mainfrom
chore/remove-stale-lgtm-comments
Jul 24, 2026
Merged

Pascal-ZeGerman merged 1 commit into
mainfrom
chore/remove-stale-lgtm-comments

Conversation

@Pascal-ZeGerman

Copy link
Copy Markdown
Owner

Summary

  • The 4 remaining open code-scanning alerts (py/ineffectual-statement, on the @overload ... stub bodies in pipeline.py and its vendored copy) are dismissed via the GitHub API as false positives — PEP 484 mandates that syntax, it's not an actual no-op bug.
  • Removed the # lgtm[py/ineffectual-statement] comments that were sitting next to them. GitHub's CodeQL Action doesn't honor # lgtm (that's an LGTM.com-only convention), so they were dead/misleading — a prior commit claimed to have removed these already but hadn't.

Test plan

  • ruff check / ruff format --check clean
  • mypy (src, custom_components) clean
  • pytest -k "pipeline or overload" passes (22 passed)
  • Confirmed via gh api .../code-scanning/alerts that all 4 alerts are now dismissed

…loads

The commit that closed the code-scanning alerts (#27) claimed these
were already removed, but they weren't -- both copies still had them.
GitHub's CodeQL Action does not honor inline `# lgtm[...]` comments
(that's an LGTM.com-only mechanism), so they were dead weight that
looked like a suppression but did nothing.

The underlying py/ineffectual-statement alerts (4, on the `...` stub
bodies mandated by typing.overload/PEP 484) were dismissed via the
GitHub API as false positives instead, which is the actual mechanism
GitHub's CodeQL Action respects.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Pascal-ZeGerman
Pascal-ZeGerman merged commit cbba010 into main Jul 24, 2026
15 of 17 checks passed
@Pascal-ZeGerman
Pascal-ZeGerman deleted the chore/remove-stale-lgtm-comments branch July 24, 2026 14:41
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