Skip to content

Commit d429832

Browse files
authored
Update example to be more pythonic (#23)
* Update example to be more pythonic * Revert " Update example to be more pythonic" This reverts commit 745bcdb. * Update example to make more pythonic
1 parent 6cd9344 commit d429832

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ async def main():
4545
)
4646
created_item = await client.items.create(to_create)
4747

48-
print(created_item.dict())
48+
print(dict(created_item))
4949

5050
# Retrieve an item from your vault.
5151
item = await client.items.get("vault_id", created_item.id)
5252

53-
print(item.dict())
53+
print(dict(item))
5454

5555
# Update a field in your item
5656
item.fields[0].value = "new_value"
5757
updated_item = await client.items.update(item)
5858

59-
print(updated_item.dict())
59+
print(dict(updated_item))
6060

6161
# Delete a item from your vault.
6262
await client.items.delete("vault_id", updated_item.id)

0 commit comments

Comments
 (0)