Skip to content

Commit 01a512c

Browse files
committed
Fix linter error: Add missing function type declaration.
1 parent 1037227 commit 01a512c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pip/_internal/utils/compatibility_tags.py

+4
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ def _get_custom_platforms(arch):
8787

8888

8989
def _expand_allowed_platforms(platforms):
90+
# type: (Optional[List[str]]) -> Optional[List[str]]
91+
if not platforms:
92+
return None
93+
9094
seen = set()
9195
result = []
9296

0 commit comments

Comments
 (0)