Skip to content

refactor(handler): Guard type hints imports with `TYPE_CHECKING`

c96221c
Select commit
Loading
Failed to load commit list.
Merged

refactor(handler): Prevent circular imports with type hints #711

refactor(handler): Guard type hints imports with `TYPE_CHECKING`
c96221c
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Dec 2, 2025 in 0s

67.40% (+0.03%) compared to b692355

View this Pull Request on Codecov

67.40% (+0.03%) compared to b692355

Details

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.40%. Comparing base (b692355) to head (c96221c).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #711      +/-   ##
==========================================
+ Coverage   67.36%   67.40%   +0.03%     
==========================================
  Files          91       91              
  Lines        2942     2945       +3     
==========================================
+ Hits         1982     1985       +3     
  Misses        960      960              
Files with missing lines Coverage Δ
src/powerapi/actor/actor.py 53.00% <100.00%> (+0.95%) ⬆️
src/powerapi/actor/state.py 76.19% <100.00%> (ø)
src/powerapi/handler/handler.py 50.00% <100.00%> (+2.00%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.