Skip to content

Commit 7f46f94

Browse files
committed
Add requested property to BaseDistribution
1 parent d830c96 commit 7f46f94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pip/_internal/metadata/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ def installer(self) -> str:
311311
return cleaned_line
312312
return ""
313313

314+
@property
315+
def requested(self) -> bool:
316+
return self.is_file("REQUESTED")
317+
314318
@property
315319
def editable(self) -> bool:
316320
return bool(self.editable_project_location)

0 commit comments

Comments
 (0)