diff options
author | John L. Villalovos <john@sodarock.com> | 2022-01-14 15:33:46 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-01-14 15:33:46 -0800 |
commit | 0c3a1d163895f660340a6c2b2f196ad996542518 (patch) | |
tree | cef48e066620e4802711ad38f2b7381d3825c93e /gitlab/mixins.py | |
parent | a1dbe86c20b205ce135a7592d5c551e67adfb929 (diff) | |
download | gitlab-0c3a1d163895f660340a6c2b2f196ad996542518.tar.gz |
chore: create return type-hints for `get_id()` & `encoded_id`
Create return type-hints for `RESTObject.get_id()` and
`RESTObject.encoded_id`. Previously was saying they return Any. Be
more precise in saying they can return either: None, str, or int.
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r-- | gitlab/mixins.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 0d22b78..d66b2eb 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -576,6 +576,7 @@ class ObjectDeleteMixin(_RestObjectBase): """ if TYPE_CHECKING: assert isinstance(self.manager, DeleteMixin) + assert self.encoded_id is not None self.manager.delete(self.encoded_id, **kwargs) |