From 69bd80720c2f0bceed57bcfe99c6f55163205e54 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Tue, 14 May 2024 23:05:17 -0700 Subject: [PATCH] chore: add type info for ProjectFile.content Closes: #2821 --- gitlab/v4/objects/files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gitlab/v4/objects/files.py b/gitlab/v4/objects/files.py index 98da88793..7adf05af5 100644 --- a/gitlab/v4/objects/files.py +++ b/gitlab/v4/objects/files.py @@ -40,6 +40,7 @@ class ProjectFile(SaveMixin, ObjectDeleteMixin, RESTObject): commit_message: str file_path: str manager: "ProjectFileManager" + content: str # since the `decode()` method uses `self.content` def decode(self) -> bytes: """Returns the decoded content of the file.