supervision/tests/annotators
shao 475d551908
refactor: vectorize `get_labels_text()` in annotators/utils (#2465)
* refactor: vectorize `get_labels_text()` in annotators/utils.py
* test: add tests for all get_labels_text branches
* style: flatten elif/else to guard clauses in get_labels_text()
* refactor: guard get_labels_text() against array/detections length mismatch
* test: add missing get_labels_text() coverage

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: jirka <6035284+Borda@users.noreply.github.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
2026-08-03 17:43:14 +02:00
..
__init__.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
test_core.py refactor(cv2): add optional backend facade (#2430) 2026-07-15 20:53:24 +02:00
test_docs.py chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
test_utils.py refactor: vectorize `get_labels_text()` in annotators/utils (#2465) 2026-08-03 17:43:14 +02:00