Skip to content

Commit 7622768

Browse files
committed
Apply pre-commit
1 parent 3ea5065 commit 7622768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/model_api/visualizer/scene/segmentation/instance_segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class InstanceSegmentationScene(Scene):
2121
def __init__(self, image: Image, result: InstanceSegmentationResult, layout: Union[Layout, None] = None) -> None:
2222
# nosec as random is used for color generation
2323
g = random.Random(0) # noqa: S311 # nosec B311
24-
self.color_per_label = {label: f"#{g.randint(0, 0xFFFFFF):06x}" for label in set(result.label_names)} # noqa: S311 # nosec B311
24+
self.color_per_label = {label: f"#{g.randint(0, 0xFFFFFF):06x}" for label in set(result.label_names)} # nosec B311
2525
super().__init__(
2626
base=image,
2727
label=self._get_labels(result),

0 commit comments

Comments
 (0)