diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-12-01 01:03:30 +0100 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2021-12-01 01:03:30 +0100 |
commit | 79e785e765f4219fe6001ef7044235b82c5e7754 (patch) | |
tree | ba7802c55cf233031b77e719cebb59639ba61f8b /gitlab/v4/objects/snippets.py | |
parent | af0cb4d18b8bfbc0624ea2771d73544dc1b24b54 (diff) | |
download | gitlab-docs/sphinx-annotations.tar.gz |
docs: use annotations for return typesdocs/sphinx-annotations
Diffstat (limited to 'gitlab/v4/objects/snippets.py')
-rw-r--r-- | gitlab/v4/objects/snippets.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/v4/objects/snippets.py b/gitlab/v4/objects/snippets.py index 08fffb9..66459c0 100644 --- a/gitlab/v4/objects/snippets.py +++ b/gitlab/v4/objects/snippets.py @@ -48,7 +48,7 @@ class Snippet(UserAgentDetailMixin, SaveMixin, ObjectDeleteMixin, RESTObject): GitlabGetError: If the content could not be retrieved Returns: - str: The snippet content + The snippet content """ path = f"/snippets/{self.get_id()}/raw" result = self.manager.gitlab.http_get( @@ -81,7 +81,7 @@ class SnippetManager(CRUDMixin, RESTManager): GitlabListError: If the list could not be retrieved Returns: - RESTObjectList: A generator for the snippets list + A generator for the snippets list """ return self.list(path="/snippets/public", **kwargs) @@ -122,7 +122,7 @@ class ProjectSnippet(UserAgentDetailMixin, SaveMixin, ObjectDeleteMixin, RESTObj GitlabGetError: If the content could not be retrieved Returns: - str: The snippet content + The snippet content """ path = f"{self.manager.path}/{self.get_id()}/raw" result = self.manager.gitlab.http_get( |