Skip to content

Commit 01dabd4

Browse files
committed
Update types
1 parent d11ee6e commit 01dabd4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

labelbox/schema/project.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from collections import namedtuple
55
from datetime import datetime, timezone
66
from pathlib import Path
7-
from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Union
7+
from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Union, Type
88
from urllib.parse import urlparse
99

1010
import ndjson
@@ -21,6 +21,7 @@
2121
from labelbox.schema.media_type import MediaType
2222
from labelbox.schema.queue_mode import QueueMode
2323
from labelbox.schema.resource_tag import ResourceTag
24+
from labelbox.schema.data_row import DataRow
2425

2526
if TYPE_CHECKING:
2627
from labelbox import BulkImportRequest
@@ -574,7 +575,7 @@ def setup(self, labeling_frontend, labeling_frontend_options) -> None:
574575

575576
def create_batch(self,
576577
name: str,
577-
data_rows: List[Union[str, Entity.DataRow]],
578+
data_rows: List[Union[str, Type[DataRow]]],
578579
priority: int = 5,
579580
consensus_settings: Optional[Dict[str, float]] = None):
580581
"""Create a new batch for a project. Batches is in Beta and subject to change

0 commit comments

Comments
 (0)