Skip to content

Commit 0f671ea

Browse files
committed
Fix pyright errors.
1 parent 6405503 commit 0f671ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/example-pytest-selfie/tests/cache_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def openai():
1616

1717
def test_gen_ai():
1818
# Fetch the chat response with caching
19-
chat = cache_selfie_json(
19+
chat: dict = cache_selfie_json(
2020
lambda: openai()
2121
.chat.completions.create(
2222
model="gpt-4o",
@@ -63,7 +63,7 @@ def test_gen_ai():
6363
}
6464
}""")
6565
# raise ValueError(f"KEYS={chat.keys()} TYPE={type(chat)}")
66-
image_url = cache_selfie_json(
66+
image_url: dict = cache_selfie_json(
6767
lambda: openai()
6868
.images.generate(
6969
model="dall-e-3", prompt=chat["choices"][0]["message"]["content"]

0 commit comments

Comments
 (0)