Skip to content

Commit 0c89f1d

Browse files
committed
Change name to create_requirement
1 parent 99dcb04 commit 0c89f1d

File tree

1 file changed

+2
-2
lines changed
  • src/pip/_internal/metadata/importlib

1 file changed

+2
-2
lines changed

src/pip/_internal/metadata/importlib/_dists.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636

3737
@functools.lru_cache(maxsize=1024)
38-
def requirements(req_str: str) -> Requirement:
38+
def create_requirement(req_str: str) -> Requirement:
3939
return Requirement(req_str)
4040

4141

@@ -222,7 +222,7 @@ def is_extra_provided(self, extra: str) -> bool:
222222
def iter_dependencies(self, extras: Collection[str] = ()) -> Iterable[Requirement]:
223223
contexts: Sequence[Dict[str, str]] = [{"extra": e} for e in extras]
224224
for req_string in self.metadata.get_all("Requires-Dist", []):
225-
req = requirements(req_string)
225+
req = create_requirement(req_string)
226226
if not req.marker:
227227
yield req
228228
elif not extras and req.marker.evaluate({"extra": ""}):

0 commit comments

Comments
 (0)