Skip to content

Commit ccb6a83

Browse files
Apply suggestion from @serhiy-storchaka
1 parent b70beb5 commit ccb6a83

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/unittest/mock.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,7 @@ def __dir__(self):
798798
from_type = [e for e in from_type if not e.startswith('_')]
799799
from_dict = [e for e in from_dict if not e.startswith('_') or
800800
_is_magic(e)]
801-
return sorted(set(list(extras) + from_type + from_dict +
802-
from_child_mocks))
801+
return sorted({*extras, *from_type, *from_dict, *from_child_mocks})
803802

804803

805804
def __setattr__(self, name, value):

0 commit comments

Comments
 (0)