summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-09-02 07:42:02 -0700
committerJohn L. Villalovos <john@sodarock.com>2021-09-02 07:47:23 -0700
commitacabf63c821745bd7e43b7cd3d799547b65e9ed0 (patch)
treee81c0ed6a01370f426ef236567b3c46ec9d6ac80
parentbdb6cb932774890752569ebbc86509e011728ae6 (diff)
downloadgitlab-acabf63c821745bd7e43b7cd3d799547b65e9ed0.tar.gz
docs: correct documented return type
repository_archive() returns 'bytes' not 'str' https://docs.gitlab.com/ee/api/repositories.html#get-file-archive Fixes: #1584
-rw-r--r--gitlab/v4/objects/repositories.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects/repositories.py b/gitlab/v4/objects/repositories.py
index 5a56a2d..de5f0d2 100644
--- a/gitlab/v4/objects/repositories.py
+++ b/gitlab/v4/objects/repositories.py
@@ -180,7 +180,7 @@ class RepositoryMixin:
GitlabListError: If the server failed to perform the request
Returns:
- str: The binary data of the archive
+ bytes: The binary data of the archive
"""
path = "/projects/%s/repository/archive" % self.get_id()
query_data = {}