Commit 840572e4 authored by John L. Villalovos's avatar John L. Villalovos Committed by Nejc Habjan
Browse files

chore: correct type-hint for `job.trace()`

Closes: #2808
parent 62fa2719
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ class ProjectJob(RefreshMixin, RESTObject):
        *,
        iterator: bool = False,
        **kwargs: Any,
    ) -> Dict[str, Any]:
    ) -> Optional[Union[bytes, Iterator[Any]]]:
        """Get the job trace.

        Args:
@@ -236,12 +236,9 @@ class ProjectJob(RefreshMixin, RESTObject):
        )
        if TYPE_CHECKING:
            assert isinstance(result, requests.Response)
        return_value = utils.response_content(
        return utils.response_content(
            result, streamed, action, chunk_size, iterator=iterator
        )
        if TYPE_CHECKING:
            assert isinstance(return_value, dict)
        return return_value


class ProjectJobManager(RetrieveMixin, RESTManager):