summaryrefslogtreecommitdiff
path: root/gitlab/utils.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-02-28 19:13:11 +0100
committerGitHub <noreply@github.com>2021-02-28 19:13:11 +0100
commit5f23ed916aedbd266b9aaa5857461d80c9175031 (patch)
tree364677392e08928753133128174d049ff2c8c41d /gitlab/utils.py
parentd8b8a0a010b41465586dccf198582ae127a31530 (diff)
parent907634fe4d0d30706656b8bc56260b5532613e62 (diff)
downloadgitlab-5f23ed916aedbd266b9aaa5857461d80c9175031.tar.gz
Merge pull request #1342 from JohnVillalovos/jlvillal/mypy_incomplete
chore: disallow incomplete type defs
Diffstat (limited to 'gitlab/utils.py')
-rw-r--r--gitlab/utils.py5
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: