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/push_rules.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/push_rules.py')
-rw-r--r-- | gitlab/v4/objects/push_rules.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects/push_rules.py b/gitlab/v4/objects/push_rules.py index 89c3e64..b948a01 100644 --- a/gitlab/v4/objects/push_rules.py +++ b/gitlab/v4/objects/push_rules.py @@ -54,4 +54,4 @@ class ProjectPushRulesManager( def get( self, id: Optional[Union[int, str]] = None, **kwargs: Any ) -> Optional[ProjectPushRules]: - return cast(ProjectPushRules, super().get(id=id, **kwargs)) + return cast(Optional[ProjectPushRules], super().get(id=id, **kwargs)) |