Skip to content

Commit 687421e

Browse files
committed
Fix return type
1 parent a28b9ee commit 687421e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelbox/schema/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
import requests
33
import time
4-
from typing import TYPE_CHECKING, Callable, Optional, Dict, Any, List
4+
from typing import TYPE_CHECKING, Callable, Optional, Dict, Any, List, Union
55
import ndjson
66

77
from labelbox.exceptions import ResourceNotFoundError
@@ -93,7 +93,7 @@ def errors(self) -> Optional[Dict[str, Any]]:
9393
return None
9494

9595
@property
96-
def result(self) -> List[Dict[str, Any]]:
96+
def result(self) -> Union[List[Dict[str, Any]], Dict[str, Any]]:
9797
""" Fetch the result for an import task.
9898
"""
9999
if self.status == "FAILED":

0 commit comments

Comments
 (0)