diff options
Diffstat (limited to 'gitlab/utils.py')
-rw-r--r-- | gitlab/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlab/utils.py b/gitlab/utils.py index 780cf90..987f1d3 100644 --- a/gitlab/utils.py +++ b/gitlab/utils.py @@ -22,7 +22,7 @@ import requests class _StdoutStream(object): - def __call__(self, chunk) -> None: + def __call__(self, chunk: Any) -> None: print(chunk) @@ -31,7 +31,7 @@ def response_content( streamed: bool, action: Optional[Callable], chunk_size: int, -): +) -> Optional[bytes]: if streamed is False: return response.content @@ -41,6 +41,7 @@ def response_content( for chunk in response.iter_content(chunk_size=chunk_size): if chunk: action(chunk) + return None def copy_dict(dest: Dict[str, Any], src: Dict[str, Any]) -> None: |