summaryrefslogtreecommitdiff
path: root/gitlab/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/base.py')
-rw-r--r--gitlab/base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitlab/base.py b/gitlab/base.py
index bc27237..40bc06c 100644
--- a/gitlab/base.py
+++ b/gitlab/base.py
@@ -111,6 +111,9 @@ class RESTObject(object):
return self.get_id() != other.get_id()
return super(RESTObject, self) != other
+ def __dir__(self):
+ return super(RESTObject, self).__dir__() + list(self.attributes)
+
def __hash__(self):
if not self.get_id():
return super(RESTObject, self).__hash__()