diff options
author | John L. Villalovos <john@sodarock.com> | 2022-08-01 00:29:18 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-08-01 00:29:18 -0700 |
commit | 24d17b43da16dd11ab37b2cee561d9392c90f32e (patch) | |
tree | 2adacb59887c121231dd98cf04523c57674ba9c5 /gitlab/mixins.py | |
parent | 54dd4c3f857f82aa8781b0daf22fa2dd3c60c2c4 (diff) | |
download | gitlab-24d17b43da16dd11ab37b2cee561d9392c90f32e.tar.gz |
chore: enable mypy check `disallow_any_generics`
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r-- | gitlab/mixins.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index d58227a..9b5f9aa 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -73,7 +73,7 @@ class HeadMixin(_RestManagerBase): @exc.on_http_error(exc.GitlabHeadError) def head( self, id: Optional[Union[str, int]] = None, **kwargs: Any - ) -> requests.structures.CaseInsensitiveDict: + ) -> "requests.structures.CaseInsensitiveDict[Any]": """Retrieve headers from an endpoint. Args: @@ -622,7 +622,7 @@ class DownloadMixin(_RestObjectBase): def download( self, streamed: bool = False, - action: Optional[Callable] = None, + action: Optional[Callable[[bytes], None]] = None, chunk_size: int = 1024, *, iterator: bool = False, |