Skip to content

Commit 9e5c5fd

Browse files
authored
[PLT-0] Non breaking change (#1595)
1 parent 7627658 commit 9e5c5fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/labelbox/src/labelbox/schema/export_task.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def has_errors(self) -> bool:
750750
@overload
751751
def get_stream(
752752
self,
753-
converter: JsonConverter = JsonConverter(),
753+
converter: JsonConverter,
754754
stream_type: StreamType = StreamType.RESULT,
755755
) -> Stream[JsonConverterOutput]:
756756
"""Overload for getting the right typing hints when using a JsonConverter."""
@@ -765,9 +765,11 @@ def get_stream(
765765

766766
def get_stream(
767767
self,
768-
converter: Converter = JsonConverter(),
768+
converter: Optional[Converter] = None,
769769
stream_type: StreamType = StreamType.RESULT,
770770
) -> Stream:
771+
if converter is None:
772+
converter = JsonConverter()
771773
"""Returns the result of the task."""
772774
if self._task.status == "FAILED":
773775
raise ExportTask.ExportTaskException("Task failed")

0 commit comments

Comments
 (0)