Skip to content

refactor: Add comprehensive type hints across all modules#10

Merged
haugoug merged 1 commit intogvsoc:mainfrom
germainh512:type-hints
Mar 9, 2026
Merged

refactor: Add comprehensive type hints across all modules#10
haugoug merged 1 commit intogvsoc:mainfrom
germainh512:type-hints

Conversation

@germainh512
Copy link

Adds type annotations to every function signature across all 9 source files. No logic changes.

Files annotated

File What
testsuite.py Abstract base classes, Shell/Call/Checker constructors
targets.py Target methods (`get_sourceme() -> str
reporting.py table_dump_row() with rich.Table param type
config.py ConfigLoader methods
stats.py TestRunStats, TestStats, TestsetStats
tests.py TestRun, TestCommon, TestImpl, all specialized test types
testset_impl.py TestsetImpl methods
runner.py Runner (~20 typed constructor params), Worker
__init__.py from __future__ import annotations

Uses from __future__ import annotations for forward references and typing module types (Optional, Callable, TextIO, etc.).

122 tests passing.

Added type annotations to all function signatures (parameters and return
types) across all 9 source files:

- testsuite.py: Abstract base classes, Shell/Call/Checker commands
- targets.py: Target class methods
- reporting.py: table_dump_row with rich.Table param
- config.py: ConfigLoader methods
- stats.py: TestRunStats, TestStats, TestsetStats
- tests.py: TestRun, TestCommon, TestImpl and all specialized test types
- testset_impl.py: TestsetImpl methods
- runner.py: Runner (~20 typed constructor params), Worker
- __init__.py: future annotations import

Uses from __future__ import annotations for forward references.
No logic changes — only type annotations added.

122 tests passing.
@haugoug haugoug merged commit f3e8bbb into gvsoc:main Mar 9, 2026
3 checks passed
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.

2 participants