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 parent39e7435 commitae2a015Copy full SHA for ae2a015
gitlab/base.py
@@ -41,7 +41,7 @@
41
)
42
43
44
-classRESTObject(object):
+classRESTObject:
45
"""Represents an object built from server data.
46
47
It holds the attributes know from the server, and the updated attributes in
@@ -234,7 +234,7 @@ def attributes(self) -> Dict[str, Any]:
234
returnd
235
236
237
-classRESTObjectList(object):
+classRESTObjectList:
238
"""Generator object representing a list of RESTObject's.
239
240
This generator uses the Gitlab pagination system to fetch new data when
@@ -321,7 +321,7 @@ class RequiredOptional(NamedTuple):
321
optional:Tuple[str, ...]=tuple()
322
323
324
-classRESTManager(object):
+classRESTManager:
325
"""Base class for CRUD operations on objects.
326
327
Derived class must define ``_path`` and ``_obj_cls``.
gitlab/client.py
@@ -36,7 +36,7 @@
36
37
38
39
-classGitlab(object):
+classGitlab:
40
"""Represents a GitLab server connection.
Args:
@@ -957,7 +957,7 @@ def search(
957
returnself.http_list("/search",query_data=data,**kwargs)
958
959
960
-classGitlabList(object):
+classGitlabList:
961
"""Generator representing a list of remote objects.
962
963
The object handles the links returned by a query to the API, and will call
gitlab/config.py
@@ -101,7 +101,7 @@ class GitlabConfigHelperError(ConfigError):
101
pass
102
103
104
-classGitlabConfigParser(object):
+classGitlabConfigParser:
105
def__init__(
106
self,gitlab_id:Optional[str]=None,config_files:Optional[List[str]]=None
107
)->None:
gitlab/types.py
@@ -18,7 +18,7 @@
18
fromtypingimportAny,Optional,TYPE_CHECKING
19
20
21
-classGitlabAttribute(object):
+classGitlabAttribute:
22
def__init__(self,value:Any=None)->None:
23
self._value=value
24
gitlab/utils.py
@@ -21,7 +21,7 @@
importrequests
-class_StdoutStream(object):
+class_StdoutStream:
25
def__call__(self,chunk:Any)->None:
26
print(chunk)
27
gitlab/v4/cli.py
@@ -27,7 +27,7 @@
fromgitlabimportcli
28
29
30
-classGitlabCLI(object):
+classGitlabCLI:
31
32
self,gl:gitlab.Gitlab,what:str,action:str,args:Dict[str,str]
33
@@ -359,7 +359,7 @@ def get_dict(
359
returnobj.attributes
360
361
362
-classJSONPrinter(object):
+classJSONPrinter:
363
defdisplay(self,d:Union[str,Dict[str,Any]],**kwargs:Any)->None:
364
importjson# noqa
365
@@ -376,7 +376,7 @@ def display_list(
376
print(json.dumps([get_dict(obj,fields)forobjindata]))
377
378
379
-classYAMLPrinter(object):
+classYAMLPrinter:
380
381
try:
382
importyaml# noqa
@@ -411,7 +411,7 @@ def display_list(
411
412
413
414
-classLegacyPrinter(object):
+classLegacyPrinter:
415
416
verbose=kwargs.get("verbose",False)
417
padding=kwargs.get("padding",0)
tests/meta/test_mro.py
@@ -20,7 +20,7 @@ class ProjectPipeline(RefreshMixin, ObjectDeleteMixin, RESTObject):
Here is how our classes look when type-checking:
- class RESTObject(object):
+ class RESTObject:
def __init__(self, manager: "RESTManager", attrs: Dict[str, Any]) -> None:
...
@@ -52,7 +52,7 @@ class Wrongv4Object(RESTObject, Mixin):
52
deftest_show_issue()->None:
53
"""Test case to demonstrate the TypeError that occurs"""
54
55
56
def__init__(self,manager:str,attrs:int)->None:
57
58
tests/unit/test_base.py
@@ -23,7 +23,7 @@
fromgitlabimportbase
-classFakeGitlab(object):
+classFakeGitlab:
@@ -61,7 +61,7 @@ class MGR(base.RESTManager):
61
_obj_cls=object
62
_from_parent_attrs= {"test_id":"id"}
63
64
-classParent(object):
+classParent:
65
id=42
66
67
mgr=MGR(FakeGitlab(),parent=Parent())