Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gitlab/v4/objects/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down