Skip to content

Commit

Permalink
Simplify example by importing type
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpieters committed Oct 6, 2023
1 parent 385147e commit 6c3faa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time

import onepasswordconnectsdk
from onepasswordconnectsdk.models import Field, GeneratorRecipe
from onepasswordconnectsdk.models import Field, GeneratorRecipe, Item

op_connect_token = os.environ["OP_CONNECT_TOKEN"]
default_vault = os.environ["OP_VAULT"]
Expand All @@ -17,7 +17,7 @@
print(steps.steps["step1"])

# CREATE A NEW ITEM
username_item = onepasswordconnectsdk.models.Item(
username_item = Item(
title="Secret String",
category="LOGIN",
tags=["1password-connect"],
Expand Down

0 comments on commit 6c3faa0

Please sign in to comment.