Skip to content

Commit

Permalink
env: change IsolatedEnv.install parameter type
Browse files Browse the repository at this point in the history
`_IsolatedEnvVenvPip` expects this not to be an iterator.
  • Loading branch information
layday committed Sep 28, 2021
1 parent cccaf93 commit d9d2d76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/build/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import tempfile

from types import TracebackType
from typing import Callable, Iterable, List, Optional, Tuple, Type
from typing import Callable, Collection, List, Optional, Tuple, Type

import packaging.requirements
import packaging.version
Expand Down Expand Up @@ -51,7 +51,7 @@ def scripts_dir(self) -> str:
raise NotImplementedError

@abc.abstractmethod
def install(self, requirements: Iterable[str]) -> None:
def install(self, requirements: Collection[str]) -> None:
"""
Install packages from PEP 508 requirements in the isolated build environment.
Expand Down Expand Up @@ -179,7 +179,7 @@ def executable(self) -> str:
def scripts_dir(self) -> str:
return self._scripts_dir

def install(self, requirements: Iterable[str]) -> None:
def install(self, requirements: Collection[str]) -> None:
"""
Install packages from PEP 508 requirements in the isolated build environment.
Expand Down

0 comments on commit d9d2d76

Please sign in to comment.