diff options
author | John L. Villalovos <john@sodarock.com> | 2022-05-30 10:09:43 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-05-30 10:09:43 -0700 |
commit | aa972d49c57f2ebc983d2de1cfb8d18924af6734 (patch) | |
tree | ef4fd32c6bc37c68d2fe60c7bfbc3f137b54e0e2 /gitlab/mixins.py | |
parent | b2e6f3bc0dd6d8a7da39939850689a3677eb2444 (diff) | |
download | gitlab-aa972d49c57f2ebc983d2de1cfb8d18924af6734.tar.gz |
chore: update type-hints return signature for GetWithoutIdMixin methods
Commit f0152dc3cc9a42aa4dc3c0014b4c29381e9b39d6 removed situation
where `get()` in a `GetWithoutIdMixin` based class could return `None`
Update the type-hints to no longer return `Optional` AKA `None`
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r-- | gitlab/mixins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 7cb3adc..7e26cea 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -126,7 +126,7 @@ class GetWithoutIdMixin(_RestManagerBase): @exc.on_http_error(exc.GitlabGetError) def get( self, id: Optional[Union[int, str]] = None, **kwargs: Any - ) -> Optional[base.RESTObject]: + ) -> base.RESTObject: """Retrieve a single object. Args: |