diff --git a/gitlab/v4/objects/files.py b/gitlab/v4/objects/files.py index 10a1b4f06..9fe692f5d 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)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: