Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hculea committed Dec 20, 2024
1 parent f1bdebd commit 01b8d28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/onepassword/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
"""
Expand All @@ -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:
Expand Down

0 comments on commit 01b8d28

Please sign in to comment.