Skip to content

fix: Resolve all pyright type-checking errors (0 errors)#11

Merged
haugoug merged 2 commits intogvsoc:mainfrom
germainh512:pyright-fixes
Mar 10, 2026
Merged

fix: Resolve all pyright type-checking errors (0 errors)#11
haugoug merged 2 commits intogvsoc:mainfrom
germainh512:pyright-fixes

Conversation

@germainh512
Copy link

Fixes all 30 pyright errors. Clean bill of health: 0 errors, 0 warnings.

Changes

File Fixes
__main__.py None guards for runner in exception handler and --no-fail check
runner.py Explicit import importlib.util, None check on get_full_name(), fallback for psutil.cpu_count(), asserts for spec/loader
reporting.py table_dump_row numeric params accept `int
tests.py timer init before conditional, None fallbacks on get_full_name(), assert proc.stdout, skip_message declared in __init__
testsuite.py get_target() returns `Target
testset_impl.py Fixed variable shadowing in __get_targets(), `flags: str

122 tests passing.

haugoug added 2 commits March 10, 2026 08:34
Fixed 30 pyright errors across 6 files:

- __main__.py: None guards for runner in exception/no-fail paths
- runner.py: explicit import importlib.util, None check on get_full_name(),
  fallback for psutil.cpu_count(), asserts for spec/loader
- reporting.py: table_dump_row accepts int | float for numeric params
- tests.py: timer init before conditional, None fallbacks on get_full_name(),
  assert proc.stdout, skip_message declared in __init__
- testsuite.py: get_target() returns Target | None, param name alignment
- testset_impl.py: fixed __get_targets() variable shadowing, flags typed as
  str | None to match base class

122 tests passing. pyright: 0 errors, 0 warnings.
Reformatted only lines that exceeded 100 chars (59 lines across 7 files).
Lines already within the limit are untouched.

122 tests passing. Pyright: 0 errors.
@haugoug haugoug merged commit bc1c701 into gvsoc:main Mar 10, 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