Skip to content

Commit

Permalink
Fix faker type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesittas committed May 2, 2024
1 parent 185e115 commit 0066487
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/wursthall/models/src/customer_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def execute(
for _ in range(random.choice(range(10, 20))):
customer_details.append(
CustomerDetails(
id=faker.uuid4(),
id=t.cast(str, faker.uuid4()),
name=faker.name(),
phone=faker.phone_number(),
email=faker.ascii_email(),
Expand Down
2 changes: 1 addition & 1 deletion examples/wursthall/models/src/order_item_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def execute(
faker = Faker()
order_ds = order_date.strftime("%Y-%m-%d")
for _ in range(random.choice(range(50, 100))):
order_item_id = faker.uuid4()
order_item_id = t.cast(str, faker.uuid4())
table_id = np.random.choice(range(0, 20))
is_registered_customer = np.random.choice([True, False], p=[0.1, 0.9])
if is_registered_customer:
Expand Down

0 comments on commit 0066487

Please sign in to comment.