Skip to content

Commit f4b821c

Browse files
sbidoulpradyunsg
authored andcommitted
Don't create a list when an iterator is sufficient
1 parent 350c980 commit f4b821c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/metadata/pkg_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def iter_dependencies(self, extras: Collection[str] = ()) -> Iterable[Requiremen
249249
return self._dist.requires(extras)
250250

251251
def iter_provided_extras(self) -> Iterable[NormalizedName]:
252-
return list(self._extra_mapping.keys())
252+
return self._extra_mapping.keys()
253253

254254

255255
class Environment(BaseEnvironment):

0 commit comments

Comments
 (0)