Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 62fa271

Browse filesBrowse files
JohnVillalovosnejch
authored andcommitted
chore: add type info for ProjectFile.content
Closes: #2821
1 parent b187dea commit 62fa271
Copy full SHA for 62fa271

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Collapse file

‎gitlab/v4/objects/files.py‎

Copy file name to clipboardExpand all lines: gitlab/v4/objects/files.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ProjectFile(SaveMixin, ObjectDeleteMixin, RESTObject):
4040
commit_message: str
4141
file_path: str
4242
manager: "ProjectFileManager"
43+
content: str # since the `decode()` method uses `self.content`
4344

4445
def decode(self) -> bytes:
4546
"""Returns the decoded content of the file.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.