Bluetooth-Devices / dbus-fast

A faster version of dbus-next
MIT License
35 stars 8 forks source link

fix: avoid expensive runtime inspection of known callables #277

Closed bdraco closed 7 months ago

bdraco commented 7 months ago

Avoid calling _check_callback_type when we know the callable being passed is correct since they are created internally

codecov[bot] commented 7 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (2b8770b) 83.42% compared to head (97951bf) 83.49%. Report is 1 commits behind head on main.

Files Patch % Lines
src/dbus_fast/__version__.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #277 +/- ## ========================================== + Coverage 83.42% 83.49% +0.06% ========================================== Files 28 28 Lines 3295 3296 +1 Branches 684 685 +1 ========================================== + Hits 2749 2752 +3 Misses 332 332 + Partials 214 212 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.