Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5bf7525

Browse files
committed
fix(types): prevent __dir__ from producing duplicates
1 parente798c9b commit5bf7525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎gitlab/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __ne__(self, other: object) -> bool:
132132
returnsuper(RESTObject,self)!=other
133133

134134
def__dir__(self):
135-
returnsuper(RESTObject,self).__dir__()+list(self.attributes)
135+
returnsuper(RESTObject,self).__dir__()|self.attributes.keys()
136136

137137
def__hash__(self)->int:
138138
ifnotself.get_id():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp