summaryrefslogtreecommitdiff
path: root/gitlab/base.py
diff options
context:
space:
mode:
authorSpencer Young <spencer.young@spyoung.com>2021-03-23 12:51:34 -0700
committerSpencer Young <spencer.young@spyoung.com>2021-03-23 12:51:34 -0700
commit5bf7525d2d37968235514d1b93a403d037800652 (patch)
tree0915ab7c4cdc4f81031750e9d5317dc6a93276e7 /gitlab/base.py
parente798c9b685f1a3da8875f2cef9e6749f86d9ecbd (diff)
downloadgitlab-5bf7525d2d37968235514d1b93a403d037800652.tar.gz
fix(types): prevent __dir__ from producing duplicates
Diffstat (limited to 'gitlab/base.py')
-rw-r--r--gitlab/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/base.py b/gitlab/base.py
index 5eb1118..53bf452 100644
--- a/gitlab/base.py
+++ b/gitlab/base.py
@@ -132,7 +132,7 @@ class RESTObject(object):
return super(RESTObject, self) != other
def __dir__(self):
- return super(RESTObject, self).__dir__() + list(self.attributes)
+ return super(RESTObject, self).__dir__() | self.attributes.keys()
def __hash__(self) -> int:
if not self.get_id():