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 a9b2594 commit 3f4855bCopy full SHA for 3f4855b
1 file changed
‎importlib_metadata/__init__.py‎
@@ -339,7 +339,7 @@ def __repr__(self):
339
Repr with classname and tuple constructor to
340
signal that we deviate from regular tuple behavior.
341
"""
342
- return '%s(%r)' % (self.__class__.__name__, tuple(self))
+ return f'{self.__class__.__name__}({tuple(self)!r})'
343
344
def select(self, **params) -> EntryPoints:
345
@@ -836,7 +836,7 @@ class FastPath:
836
837
838
@_clear_after_fork # type: ignore[misc]
839
- @functools.lru_cache()
+ @functools.lru_cache
840
def __new__(cls, root):
841
return super().__new__(cls)
842
0 commit comments