summaryrefslogtreecommitdiff
path: root/gitlab/v4
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-01-23 01:15:21 +0100
committerJohn Villalovos <john@sodarock.com>2022-01-23 07:14:49 -0800
commit618267ced7aaff46d8e03057fa0cab48727e5dc0 (patch)
treeee4921cf73a743821bf4cb9b01a8728f9e1dfa64 /gitlab/v4
parente8031f42b6804415c4afee4302ab55462d5848ac (diff)
downloadgitlab-618267ced7aaff46d8e03057fa0cab48727e5dc0.tar.gz
chore: don't explicitly pass args to super()
Diffstat (limited to 'gitlab/v4')
-rw-r--r--gitlab/v4/objects/appearance.py2
-rw-r--r--gitlab/v4/objects/files.py2
-rw-r--r--gitlab/v4/objects/keys.py2
-rw-r--r--gitlab/v4/objects/services.py4
-rw-r--r--gitlab/v4/objects/settings.py2
5 files changed, 6 insertions, 6 deletions
diff --git a/gitlab/v4/objects/appearance.py b/gitlab/v4/objects/appearance.py
index f6643f4..4f8b2b2 100644
--- a/gitlab/v4/objects/appearance.py
+++ b/gitlab/v4/objects/appearance.py
@@ -56,7 +56,7 @@ class ApplicationAppearanceManager(GetWithoutIdMixin, UpdateMixin, RESTManager):
"""
new_data = new_data or {}
data = new_data.copy()
- return super(ApplicationAppearanceManager, self).update(id, data, **kwargs)
+ return super().update(id, data, **kwargs)
def get(
self, id: Optional[Union[int, str]] = None, **kwargs: Any
diff --git a/gitlab/v4/objects/files.py b/gitlab/v4/objects/files.py
index 4ff5b3a..435e71b 100644
--- a/gitlab/v4/objects/files.py
+++ b/gitlab/v4/objects/files.py
@@ -57,7 +57,7 @@ class ProjectFile(SaveMixin, ObjectDeleteMixin, RESTObject):
self.branch = branch
self.commit_message = commit_message
self.file_path = utils.EncodedId(self.file_path)
- super(ProjectFile, self).save(**kwargs)
+ super().save(**kwargs)
@exc.on_http_error(exc.GitlabDeleteError)
# NOTE(jlvillal): Signature doesn't match DeleteMixin.delete() so ignore
diff --git a/gitlab/v4/objects/keys.py b/gitlab/v4/objects/keys.py
index c03dced..caf8f60 100644
--- a/gitlab/v4/objects/keys.py
+++ b/gitlab/v4/objects/keys.py
@@ -21,7 +21,7 @@ class KeyManager(GetMixin, RESTManager):
self, id: Optional[Union[int, str]] = None, lazy: bool = False, **kwargs: Any
) -> Key:
if id is not None:
- return cast(Key, super(KeyManager, self).get(id, lazy=lazy, **kwargs))
+ return cast(Key, super().get(id, lazy=lazy, **kwargs))
if "fingerprint" not in kwargs:
raise AttributeError("Missing attribute: id or fingerprint")
diff --git a/gitlab/v4/objects/services.py b/gitlab/v4/objects/services.py
index 9811a3a..9b8e7f3 100644
--- a/gitlab/v4/objects/services.py
+++ b/gitlab/v4/objects/services.py
@@ -282,7 +282,7 @@ class ProjectServiceManager(GetMixin, UpdateMixin, DeleteMixin, ListMixin, RESTM
"""
obj = cast(
ProjectService,
- super(ProjectServiceManager, self).get(id, lazy=lazy, **kwargs),
+ super().get(id, lazy=lazy, **kwargs),
)
obj.id = id
return obj
@@ -308,7 +308,7 @@ class ProjectServiceManager(GetMixin, UpdateMixin, DeleteMixin, ListMixin, RESTM
GitlabUpdateError: If the server cannot perform the request
"""
new_data = new_data or {}
- result = super(ProjectServiceManager, self).update(id, new_data, **kwargs)
+ result = super().update(id, new_data, **kwargs)
self.id = id
return result
diff --git a/gitlab/v4/objects/settings.py b/gitlab/v4/objects/settings.py
index 3694b58..3075d9c 100644
--- a/gitlab/v4/objects/settings.py
+++ b/gitlab/v4/objects/settings.py
@@ -113,7 +113,7 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager):
data = new_data.copy()
if "domain_whitelist" in data and data["domain_whitelist"] is None:
data.pop("domain_whitelist")
- return super(ApplicationSettingsManager, self).update(id, data, **kwargs)
+ return super().update(id, data, **kwargs)
def get(
self, id: Optional[Union[int, str]] = None, **kwargs: Any