Skip to content

Conversation

@Kadermiyanyedi
Copy link
Contributor

Fix typing issues in the following files:

  • supervision/draw/color.py
  • supervision/draw/utils.py
  • supervision/geometry/core.py

This change only addresses mypy/type-checking errors and does not modify functionality.

@codecov
Copy link

codecov bot commented Jan 31, 2026

Codecov Report

❌ Patch coverage is 47.05882% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 61%. Comparing base (3b09a63) to head (c4848e4).

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #2120   +/-   ##
=======================================
- Coverage       61%     61%   -0%     
=======================================
  Files           61      61           
  Lines         7140    7149    +9     
=======================================
+ Hits          4353    4356    +3     
- Misses        2787    2793    +6     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kadermiyanyedi
Copy link
Contributor Author

Rect fields (x, y, width, height) are defined as float, but are used as pixel indices in draw/utils.py file. They are explicitly cast to int here. It may be worth updating Rect (or adding a pixel-based variant) to better reflect this usage. @Borda

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.

1 participant