summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/projects.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-06-26 17:11:21 -0700
committerJohn L. Villalovos <john@sodarock.com>2022-06-26 17:11:21 -0700
commit23feae9b0906d34043a784a01d31d1ff19ebc9a4 (patch)
tree2d76c104968ac7f41264240c5a1278f0fb369446 /gitlab/v4/objects/projects.py
parentb6447211754e126f64e12fc735ad74fe557b7fb4 (diff)
downloadgitlab-23feae9b0906d34043a784a01d31d1ff19ebc9a4.tar.gz
test(pylint): enable pylint "unused-argument" check
Enable the pylint "unused-argument" check and resolve issues it found. * Quite a few functions were accepting `**kwargs` but not then passing them on through to the next level. Now pass `**kwargs` to next level. * Other functions had no reason to accept `**kwargs`, so remove it * And a few other fixes.
Diffstat (limited to 'gitlab/v4/objects/projects.py')
-rw-r--r--gitlab/v4/objects/projects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py
index 875fc8b..b21ea3a 100644
--- a/gitlab/v4/objects/projects.py
+++ b/gitlab/v4/objects/projects.py
@@ -464,7 +464,7 @@ class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTO
url = f"/projects/{self.encoded_id}/uploads"
file_info = {"file": (filename, filedata)}
- data = self.manager.gitlab.http_post(url, files=file_info)
+ data = self.manager.gitlab.http_post(url, files=file_info, **kwargs)
if TYPE_CHECKING:
assert isinstance(data, dict)
@@ -504,7 +504,7 @@ class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTO
"""
path = f"/projects/{self.encoded_id}/snapshot"
result = self.manager.gitlab.http_get(
- path, streamed=streamed, raw=True, **kwargs
+ path, streamed=streamed, raw=True, wiki=wiki, **kwargs
)
if TYPE_CHECKING:
assert isinstance(result, requests.Response)