api/inventory: remove 'inventory' from api entirely

This commit is contained in:
Johannes Kirschbauer
2025-07-06 20:21:58 +02:00
parent 360766f7a6
commit 082a66f3fb
6 changed files with 6 additions and 56 deletions

View File

@@ -10,14 +10,3 @@ Which is an abstraction over the inventory
Interacting with 'clan_lib.inventory' is NOT recommended and will be removed
"""
from clan_lib.api import API
from clan_lib.flake import Flake
from clan_lib.persist.inventory_store import InventorySnapshot, InventoryStore
@API.register
def get_inventory(flake: Flake) -> InventorySnapshot:
inventory_store = InventoryStore(flake)
inventory = inventory_store.read()
return inventory