diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-04-21 21:04:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 21:04:40 +0200 |
commit | 60c5fd8878ff54f6e3fcd168545ab3af139f1dcc (patch) | |
tree | 89ab54d6e55775706e5cbaf496ad4ca485d90b13 /gitlab/base.py | |
parent | dd236a09c6a3e01a11410791210a95dd6cee9b5a (diff) | |
parent | a8e591f742f777f8747213b783271004e5acc74d (diff) | |
download | gitlab-60c5fd8878ff54f6e3fcd168545ab3af139f1dcc.tar.gz |
Merge pull request #1383 from spyoungtech/dirfix
fix(types): prevent __dir__ in RestObject from producing duplicates
Diffstat (limited to 'gitlab/base.py')
-rw-r--r-- | gitlab/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/base.py b/gitlab/base.py index 7b4e3f8..8f4e49b 100644 --- a/gitlab/base.py +++ b/gitlab/base.py @@ -133,7 +133,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(): |