diff options
author | John L. Villalovos <john@sodarock.com> | 2021-09-02 07:42:02 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-09-02 07:47:23 -0700 |
commit | acabf63c821745bd7e43b7cd3d799547b65e9ed0 (patch) | |
tree | e81c0ed6a01370f426ef236567b3c46ec9d6ac80 | |
parent | bdb6cb932774890752569ebbc86509e011728ae6 (diff) | |
download | gitlab-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.py | 2 |
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 = {} |