refactor docstrings in src/supervision/annotators (#2163)

This commit is contained in:
Omkar Kabde
2026-03-10 10:31:18 +01:00
committed by GitHub
parent e5fef4501b
commit a78bf58c6d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3107,7 +3107,7 @@ class ComparisonAnnotator:
computed positions.
Args:
scene (npt.NDArray[np.uint8]): The image where the labels will be drawn.
scene: The image where the labels will be drawn.
"""
margin = int(50 * self.label_scale)
gap = int(40 * self.label_scale)
+2 -2
View File
@@ -376,10 +376,10 @@ def hex_to_rgba(hex_color: str) -> tuple[int, int, int, int]:
Converts a hex color string (e.g. "#FF00FF" or "#FF00FF80") to an RGBA tuple.
Args:
hex_color (str): A hex color string.
hex_color: A hex color string.
Returns:
tuple[int, int, int, int]: RGBA values in range 0-255.
RGBA values in range 0-255.
Raises:
ValueError: If the format is invalid.