Skip to content

Commit f621146

Browse files
committed
update to how to grab all vector tools
1 parent 743737b commit f621146

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

labelbox/data/annotation_types/data/tiled_image.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
logging.basicConfig(level=logging.INFO)
2828
logger = logging.getLogger(__name__)
2929

30-
31-
class AllVectorTools():
32-
"""Used for the purpose of type hinting"""
33-
value: Union[Point, Line, Rectangle, Polygon] = None
30+
VectorTool = Union[Point, Line, Rectangle, Polygon]
3431

3532

3633
class EPSG(Enum):
@@ -512,7 +509,7 @@ def _get_point_obj(self, point) -> Point:
512509

513510
def __call__(
514511
self, shape: Union[Point, Line, Rectangle, Polygon]
515-
) -> Union[AllVectorTools, List[AllVectorTools]]:
512+
) -> Union[VectorTool, List[VectorTool]]:
516513
if isinstance(shape, list):
517514
return [self(geom) for geom in shape]
518515
if isinstance(shape, Point):

0 commit comments

Comments
 (0)