We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parente8031f4 commit618267cCopy full SHA for 618267c
docs/ext/docstrings.py
@@ -48,9 +48,7 @@ def _build_doc(self, tmpl, **kwargs):
48
def__init__(
49
self,docstring,config=None,app=None,what="",name="",obj=None,options=None
50
):
51
-super(GitlabDocstring,self).__init__(
52
-docstring,config,app,what,name,obj,options
53
- )
+super().__init__(docstring,config,app,what,name,obj,options)
54
55
ifname.startswith("gitlab.v4.objects")andname.endswith("Manager"):
56
self._parsed_lines.extend(self._build_doc("manager_tmpl.j2",cls=self._obj))
gitlab/base.py
@@ -167,21 +167,21 @@ def __eq__(self, other: object) -> bool:
167
returnNotImplemented
168
ifself.get_id()andother.get_id():
169
returnself.get_id()==other.get_id()
170
-returnsuper(RESTObject,self)==other
+returnsuper()==other
171
172
def__ne__(self,other:object)->bool:
173
ifnotisinstance(other,RESTObject):
174
175
176
returnself.get_id()!=other.get_id()
177
-returnsuper(RESTObject,self)!=other
+returnsuper()!=other
178
179
def__dir__(self)->Iterable[str]:
180
-returnset(self.attributes).union(super(RESTObject,self).__dir__())
+returnset(self.attributes).union(super().__dir__())
181
182
def__hash__(self)->int:
183
ifnotself.get_id():
184
-returnsuper(RESTObject,self).__hash__()
+returnsuper().__hash__()
185
returnhash(self.get_id())
186
187
def_create_managers(self)->None:
gitlab/v4/objects/appearance.py
@@ -56,7 +56,7 @@ def update(
"""
57
new_data=new_dataor {}
58
data=new_data.copy()
59
-returnsuper(ApplicationAppearanceManager,self).update(id,data,**kwargs)
+returnsuper().update(id,data,**kwargs)
60
61
defget(
62
self,id:Optional[Union[int,str]]=None,**kwargs:Any
gitlab/v4/objects/files.py
@@ -57,7 +57,7 @@ def save( # type: ignore
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)
63
# NOTE(jlvillal): Signature doesn't match DeleteMixin.delete() so ignore
gitlab/v4/objects/keys.py
@@ -21,7 +21,7 @@ def get(
21
self,id:Optional[Union[int,str]]=None,lazy:bool=False,**kwargs:Any
22
)->Key:
23
ifidisnotNone:
24
-returncast(Key,super(KeyManager,self).get(id,lazy=lazy,**kwargs))
+returncast(Key,super().get(id,lazy=lazy,**kwargs))
25
26
if"fingerprint"notinkwargs:
27
raiseAttributeError("Missing attribute: id or fingerprint")
gitlab/v4/objects/services.py
@@ -282,7 +282,7 @@ def get(
282
283
obj=cast(
284
ProjectService,
285
-super(ProjectServiceManager,self).get(id,lazy=lazy,**kwargs),
+super().get(id,lazy=lazy,**kwargs),
286
)
287
obj.id=id
288
returnobj
@@ -308,7 +308,7 @@ def update(
308
GitlabUpdateError: If the server cannot perform the request
309
310
311
-result=super(ProjectServiceManager,self).update(id,new_data,**kwargs)
+result=super().update(id,new_data,**kwargs)
312
self.id=id
313
returnresult
314
gitlab/v4/objects/settings.py
@@ -113,7 +113,7 @@ def update(
113
114
if"domain_whitelist"indataanddata["domain_whitelist"]isNone:
115
data.pop("domain_whitelist")
116
-returnsuper(ApplicationSettingsManager,self).update(id,data,**kwargs)
117
118
119