Skip to content

Commit

Permalink
Fix pyright errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Dec 16, 2024
1 parent 6405503 commit 0f671ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/example-pytest-selfie/tests/cache_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def openai():

def test_gen_ai():
# Fetch the chat response with caching
chat = cache_selfie_json(
chat: dict = cache_selfie_json(
lambda: openai()
.chat.completions.create(
model="gpt-4o",
Expand Down Expand Up @@ -63,7 +63,7 @@ def test_gen_ai():
}
}""")
# raise ValueError(f"KEYS={chat.keys()} TYPE={type(chat)}")
image_url = cache_selfie_json(
image_url: dict = cache_selfie_json(
lambda: openai()
.images.generate(
model="dall-e-3", prompt=chat["choices"][0]["message"]["content"]
Expand Down

0 comments on commit 0f671ea

Please sign in to comment.