Skip to content

Commit 64e32b3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 18b625f commit 64e32b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

greedy_methods/fractional_cover_problem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Item:
88
weight: int
99
value: int
1010

11-
def __eq__(self, other: 'Item') -> bool:
11+
def __eq__(self, other: "Item") -> bool:
1212
"""
1313
Compare two Item objects for equality based on weight and value attributes.
1414
@@ -86,6 +86,7 @@ def fractional_cover(items: list[Item], capacity: int) -> float:
8686

8787
return total_value
8888

89+
8990
if __name__ == "__main__":
9091
import doctest
9192

0 commit comments

Comments
 (0)