From 8fb6410097344f81a4e35eaa43a6dc3b90be10d8 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Mon, 18 Mar 2024 18:53:57 +0200 Subject: [PATCH] Enable inventory item setting for python3 --- src/inventory.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/inventory.py b/src/inventory.py index e6d4a24c..dc8e36bf 100644 --- a/src/inventory.py +++ b/src/inventory.py @@ -45,3 +45,6 @@ class Inventory(): # hint for pylint: this is dictionary like object def __getitem__(self, key): return self._realInventory[key] + + def __setitem__(self, key, value): + self._realInventory[key] = value