Skip to content

Commit 0eeec6d

Browse files
stephenyan1231facebook-github-bot
authored andcommitted
fix type docstring T229975788
Summary: D2 lint will complain the use of modern type annotation **edge_color: tuple[float, float, float] | None**. So remove it. Differential Revision: D77828126 fbshipit-source-id: 823b4b6bdc419f58e2413484b341d5da5a1b9fd7
1 parent 5f854d0 commit 0eeec6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

detectron2/utils/visualizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ def draw_sem_seg(
450450
sem_seg,
451451
area_threshold=None,
452452
alpha=0.8,
453-
draw_text: bool = True,
454-
edge_color: tuple[float, float, float] | None = _OFF_WHITE,
453+
draw_text=True,
454+
edge_color=_OFF_WHITE,
455455
):
456456
"""
457457
Draw semantic segmentation predictions/labels.

0 commit comments

Comments
 (0)