bfiles 2025-12-30
Fix type annotations for mypy compliance across core modules
6 files · 10+ · 9-

Type Annotation Fixes

5 files changed
  • config.py Fixed `ExcludePattern` TypeAlias from `str | re.Pattern` to `str | re.Pattern[str]`
  • core.py Removed 2 unnecessary `# type: ignore[no-untyped-call]` comments
  • exclusions.py Fixed TypeAlias import type ignore; corrected pathspec assignment annotation
  • output.py Fixed return type tuple from 9-element to 11-element; removed unnecessary type ignore
  • parser.py Changed `raw_header_lines` from list to `tuple()` conversion for immutability
  • config.py: Fixed ExcludePattern TypeAlias from str | re.Pattern to str | re.Pattern[str] for proper generic parameterization remediate internal
    1 file
    • config.py
  • core.py: Removed 2 unnecessary # type: ignore[no-untyped-call] comments from exclusion_manager.display_exclusions() calls specify errata
    1 file
    • core.py
  • exclusions.py: Fixed TypeAlias import type ignore, moved type: ignore to proper location for pathspec assignment, added type: ignore[attr-defined] for pathspec.patterns.GitWildMatchPattern remediate internal
    1 file
    • exclusions.py
  • output.py: Removed unnecessary # type: ignore[no-redef] from TypeAlias import; fixed return type tuple from 9-element to 11-element to match actual implementation remediate behavioral
    1 file
    • output.py
  • parser.py: Changed raw_header_lines from list to tuple() conversion for immutability decouple internal
    1 file
    • parser.py

Configuration

1 file changed
  • wrknv.toml Added 1 line to workspace configuration