Skip to content

Commit 08bd99f

Browse files
Directly return attributes.
Co-authored-by: Ronny Pfannschmidt <[email protected]>
1 parent 29ec9c3 commit 08bd99f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def matches(self, **params):
204204
return all(map(operator.eq, params.values(), attrs))
205205

206206
def _key(self):
207-
return tuple(getattr(self, key) for key in 'name value group'.split())
207+
return self.name, self.value, self.group
208208

209209
def __lt__(self, other):
210210
return self._key() < other._key()

0 commit comments

Comments
 (0)