Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Encord authored and Encord committed Dec 12, 2024
1 parent 668bd2a commit 72d989a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions encord/objects/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
from __future__ import annotations

from dataclasses import dataclass
from enum import Flag, auto
from enum import auto
from typing import Any, Dict, List, Optional, Type, Union

from encord.exceptions import LabelRowError
from encord.objects.bitmask import BitmaskCoordinates
from encord.objects.common import Shape
from encord.orm.analytics import CamelStrEnum
from encord.orm.base_dto import BaseDTO


Expand Down Expand Up @@ -272,7 +273,7 @@ def to_dict(self) -> dict:
return {str(idx): {"x": value.x, "y": value.y} for idx, value in enumerate(self.values)}


class Visibility(Flag):
class Visibility(CamelStrEnum):
"""
An enumeration to represent the visibility state of an item.
Expand Down Expand Up @@ -333,7 +334,7 @@ def from_dict(d: dict) -> SkeletonCoordinates:
d (dict): A dictionary containing skeleton coordinates information.
Returns:
SkeletonCoordinates: An instance of SkeletonCoordinates.
SkeletonCoordinate: An instance of SkeletonCoordinates.
"""
skeleton_dict = d["skeleton"]
Expand Down

0 comments on commit 72d989a

Please sign in to comment.