Skip to content

Commit

Permalink
fix(types): prevent __dir__ from producing duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Mar 23, 2021
1 parent e798c9b commit 5bf7525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/base.py
Expand Up @@ -132,7 +132,7 @@ def __ne__(self, other: object) -> bool:
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():
Expand Down

0 comments on commit 5bf7525

Please sign in to comment.