diff --git a/requirements/requirement.py b/requirements/requirement.py index 3d6093e..93ed328 100644 --- a/requirements/requirement.py +++ b/requirements/requirement.py @@ -168,7 +168,7 @@ def parse_editable(cls, line: str) -> 'Requirement': req.path = cast(str, groups['path']) # type: ignore else: req.local_file = True - req.path, req.name = line.rsplit('/', 1) # type: ignore + req.path, _, req.name = line.rpartition('/') # type: ignore return req