summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2021-04-23 09:57:21 +0200
committerGitHub <noreply@github.com>2021-04-23 09:57:21 +0200
commitc055de05357e07fad57ebcefb5377997eae83e68 (patch)
tree8bd1a2eb844a448ee7e63004fa61103e15391129 /gitlab/v4/objects
parent976e14d95fc5716ad161cbf39d50e5863cd9b335 (diff)
parentb180bafdf282cd97e8f7b6767599bc42d5470bfa (diff)
downloadgitlab-c055de05357e07fad57ebcefb5377997eae83e68.tar.gz
Merge pull request #1405 from JohnVillalovos/jlvillal/returns_bytes
fix: correct ProjectFile.decode() documentation
Diffstat (limited to 'gitlab/v4/objects')
-rw-r--r--gitlab/v4/objects/files.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects/files.py b/gitlab/v4/objects/files.py
index 10a1b4f..9fe692f 100644
--- a/gitlab/v4/objects/files.py
+++ b/gitlab/v4/objects/files.py
@@ -22,11 +22,11 @@ class ProjectFile(SaveMixin, ObjectDeleteMixin, RESTObject):
_id_attr = "file_path"
_short_print_attr = "file_path"
- def decode(self):
+ def decode(self) -> bytes:
"""Returns the decoded content of the file.
Returns:
- (str): the decoded content.
+ (bytes): the decoded content.
"""
return base64.b64decode(self.content)