Skip to content

Commit 7a06d0d

Browse files
committed
node: Fix B905 by adding strict=False to zip in SemVer comparison
1 parent 1ba0503 commit 7a06d0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

node/flatpak_node_generator/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __lt__(self, other: object) -> bool:
5050
if not isinstance(other, SemVer.Prerelease):
5151
return NotImplemented
5252

53-
for our_part, other_part in zip(self._parts, other._parts):
53+
for our_part, other_part in zip(self._parts, other._parts, strict=False):
5454
if type(our_part) == type(other_part):
5555
if our_part < other_part: # type: ignore
5656
return True

0 commit comments

Comments
 (0)