Skip to content

Commit 87e5479

Browse files
wip: further typing
1 parent 174aa95 commit 87e5479

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extract_wheels/lib/bazel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def generate_build_file_contents(name: str, dependencies: List[str]) -> str:
3737
)
3838

3939

40-
def generate_requirements_file_contents(repo_name: str, targets: Iterable[str]):
40+
def generate_requirements_file_contents(repo_name: str, targets: Iterable[str]) -> str:
4141
"""Generate a requirements.bzl file for a given pip repository
4242
4343
The file allows converting the PyPI name to a bazel label. Additionally, it adds a function which can glob all the

extract_wheels/lib/wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def path(self) -> str:
2222

2323
@property
2424
def name(self) -> str:
25-
return self.metadata.name
25+
return str(self.metadata.name)
2626

2727
@property
2828
def metadata(self) -> pkginfo.Wheel:

0 commit comments

Comments
 (0)