Skip to content

Commit 3b35504

Browse files
committed
unfortunate hack on dataclass in model
1 parent 37bebea commit 3b35504

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎model.py‎

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

2121

22-
@dataclass(frozen=True)
22+
@dataclass(unsafe_hash=True)
2323
class OrderLine:
2424
orderid: str
2525
sku: str

0 commit comments

Comments
 (0)