Skip to content

Commit 9041602

Browse files
committed
Merge branch 'issue/11924-requirements-on-extras' of github.com:sanderr/pip into issue/11924-requirements-on-extras
2 parents 0de374e + 5a01679 commit 9041602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/req/constructors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _set_requirement_extras(req: Requirement, new_extras: Set[str]) -> Requireme
7676
post: Optional[str] = match.group(3)
7777
assert pre is not None and post is not None
7878
extras: str = "[%s]" % ",".join(sorted(new_extras)) if new_extras else ""
79-
return Requirement(pre + extras + post)
79+
return Requirement(f"{pre}{extras}{post}")
8080

8181

8282
def parse_editable(editable_req: str) -> Tuple[Optional[str], str, Set[str]]:

0 commit comments

Comments
 (0)