Skip to content

Commit 8e9219b

Browse files
Address lint issue in build.py (#727)
1 parent 4d86638 commit 8e9219b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _build():
2828
# We won't use the wheel built by maturin directly since
2929
# we want Poetry to build it but we need to retrieve the
3030
# compiled extensions from the maturin wheel.
31-
wheel = list(wheels_dir.glob("*.whl"))[0]
31+
wheel = next(iter(wheels_dir.glob("*.whl")))
3232
with zipfile.ZipFile(wheel.as_posix()) as whl:
3333
whl.extractall(wheels_dir.as_posix())
3434

0 commit comments

Comments
 (0)