diff options
author | John L. Villalovos <john@sodarock.com> | 2021-12-01 16:04:16 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-12-08 07:36:35 -0800 |
commit | d27c50ab9d55dd715a7bee5b0c61317f8565c8bf (patch) | |
tree | 48173d761de29daf78fb9573ff693a74edf601f1 /gitlab/v4/objects/settings.py | |
parent | 494535337b71592effeca57bb1ff2e735ebeb58a (diff) | |
download | gitlab-jlvillal/get_without_id.tar.gz |
chore: add get() methods for GetWithoutIdMixin based classesjlvillal/get_without_id
Add the get() methods for the GetWithoutIdMixin based classes.
Update the tests/meta/test_ensure_type_hints.py tests to check to
ensure that the get methods are defined with the correct return type.
Diffstat (limited to 'gitlab/v4/objects/settings.py')
-rw-r--r-- | gitlab/v4/objects/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects/settings.py b/gitlab/v4/objects/settings.py index 0fb7f8a..96f2539 100644 --- a/gitlab/v4/objects/settings.py +++ b/gitlab/v4/objects/settings.py @@ -118,4 +118,4 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager): def get( self, id: Optional[Union[int, str]] = None, **kwargs: Any ) -> Optional[ApplicationSettings]: - return cast(ApplicationSettings, super().get(id=id, **kwargs)) + return cast(Optional[ApplicationSettings], super().get(id=id, **kwargs)) |