We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29ec9c3 commit 08bd99fCopy full SHA for 08bd99f
importlib_metadata/__init__.py
@@ -204,7 +204,7 @@ def matches(self, **params):
204
return all(map(operator.eq, params.values(), attrs))
205
206
def _key(self):
207
- return tuple(getattr(self, key) for key in 'name value group'.split())
+ return self.name, self.value, self.group
208
209
def __lt__(self, other):
210
return self._key() < other._key()
0 commit comments