Skip to content

Add Python type hints to ai_bom.scanner module#66

Open
biliyajanardhan wants to merge 1 commit intoTrusera:mainfrom
biliyajanardhan:add-type-hints-scanner
Open

Add Python type hints to ai_bom.scanner module#66
biliyajanardhan wants to merge 1 commit intoTrusera:mainfrom
biliyajanardhan:add-type-hints-scanner

Conversation

@biliyajanardhan
Copy link

Summary

Added Python type hints to the ai_bom.scanners.base module to improve code readability, maintainability, and static type checking. The changes ensure compatibility with the existing implementation and pass mypy type checks.

Changes

  • Added missing type hints for variables and functions in BaseScanner
  • Improved type safety for internal variables
  • Verified code using mypy (no type errors)
  • Ensured existing tests run successfully

Type of Change

  • Bug fix
  • New feature
  • New scanner
  • New reporter
  • New detection pattern
  • Documentation
  • Refactoring
  • CI/CD

Checklist

  • Tests added/updated
  • ruff check passes
  • pytest passes
  • Documentation updated (if applicable)
  • No hardcoded secrets or credentials

@biliyajanardhan biliyajanardhan requested a review from Zie619 as a code owner March 9, 2026 05:54
@biliyajanardhan
Copy link
Author

Hi, I’ve opened a PR for this issue. Please let me know if any changes are needed.

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