summaryrefslogtreecommitdiff
path: root/gitlab/client.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-06-03 16:47:51 -0700
committerJohn L. Villalovos <john@sodarock.com>2022-06-04 09:18:22 -0700
commit1324ce1a439befb4620953a4df1f70b74bf70cbd (patch)
tree410d390b51fd98a4ee8a03e0e3e7da1d21cdaf53 /gitlab/client.py
parent80aadaf4262016a8181b5150ca7e17c8139c15fa (diff)
downloadgitlab-1324ce1a439befb4620953a4df1f70b74bf70cbd.tar.gz
chore: enable pylint check: "redefined-outer-name",
Enable the pylint check "redefined-outer-name" and fix the errors detected.
Diffstat (limited to 'gitlab/client.py')
-rw-r--r--gitlab/client.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gitlab/client.py b/gitlab/client.py
index 0019c0e..f5d12df 100644
--- a/gitlab/client.py
+++ b/gitlab/client.py
@@ -119,9 +119,8 @@ class Gitlab:
raise ModuleNotFoundError(f"gitlab.v{self._api_version}.objects")
# NOTE: We must delay import of gitlab.v4.objects until now or
# otherwise it will cause circular import errors
- import gitlab.v4.objects
+ from gitlab.v4 import objects
- objects = gitlab.v4.objects
self._objects = objects
self.user: Optional[objects.CurrentUser] = None
@@ -214,9 +213,9 @@ class Gitlab:
) # pragma: no cover, dead code currently
# NOTE: We must delay import of gitlab.v4.objects until now or
# otherwise it will cause circular import errors
- import gitlab.v4.objects
+ from gitlab.v4 import objects
- self._objects = gitlab.v4.objects
+ self._objects = objects
@property
def url(self) -> str: