Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofferEdlund committed Nov 17, 2023
1 parent 2af57b4 commit 2d9f9d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions darwin/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,12 @@ def make_polygon(
"""

if darwin_v1:
polygon_data = ({"path": point_path})
polygon_data = {"path": point_path}
else:
# Lets handle darwin V2 datasets
if not isinstance(point_path[0], list):
point_path = [point_path]
polygon_data = ({"paths": point_path})
polygon_data = {"paths": point_path}

return Annotation(
AnnotationClass(class_name, "polygon"),
Expand Down

0 comments on commit 2d9f9d2

Please sign in to comment.