Skip to content

Commit 527b320

Browse files
committed
unfortunate hack on dataclass in model
1 parent ef7a621 commit 527b320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def allocate(line: OrderLine, batches: List[Batch]) -> str:
1717
raise OutOfStock(f"Out of stock for sku {line.sku}")
1818

1919

20-
@dataclass(frozen=True)
20+
@dataclass(unsafe_hash=True)
2121
class OrderLine:
2222
orderid: str
2323
sku: str

0 commit comments

Comments
 (0)