Closed jacobtomlinson closed 3 months ago
Attention: Patch coverage is 95.45455%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 95.02%. Comparing base (
87063fc
) to head (7625901
). Report is 125 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
kr8s/_objects.py | 85.71% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The
resource
argument in allAPIObject
based classes is annotated to take adict
, but it's far more flexible than that.This PR fixes the type annotation by replacing it with one that accurately reflects what it supports.
I also replaced a
contextlib.suppress(...)
with anisinstance
andProtocol
which seems much more pleasant.