From 01b8d286f211902ee62239da8f5db1ca114ff2bd Mon Sep 17 00:00:00 2001 From: Horia Culea Date: Fri, 20 Dec 2024 17:06:53 +0100 Subject: [PATCH] Fix build --- src/onepassword/items.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/onepassword/items.py b/src/onepassword/items.py index c37a279..dc20c92 100644 --- a/src/onepassword/items.py +++ b/src/onepassword/items.py @@ -4,7 +4,7 @@ from json import loads from .iterator import SDKIterator from .items_share import ItemsShare -from .types import Item, ItemCreateParams, ItemOverview, Option +from .types import Item, ItemCreateParams, ItemOverview class Items: @@ -50,7 +50,7 @@ async def get(self, vault_id: str, item_id: str) -> Item: ) return Item.model_validate_json(response) - async def get_all(self, vault_id: str, item_ids: list[str]) -> list[Option]: + async def get_all(self, vault_id: str, item_ids: list[str]) -> list[Item]: """ Get items by vault and their item IDs. """ @@ -67,7 +67,7 @@ async def get_all(self, vault_id: str, item_ids: list[str]) -> list[Option]: ) response = loads(response) - response = [Option.model_validate(data) for data in response] + response = [Item.model_validate(data) for data in response] return response async def put(self, item: Item) -> Item: