Skip to content

Commit ab3562b

Browse files
committed
fix type error in test
1 parent 6c5f838 commit ab3562b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/sync/test_sync.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import pytest
2-
from humanloop import Humanloop, FileType
1+
from typing import List, NamedTuple, Union
32
from pathlib import Path
4-
from typing import List, NamedTuple
3+
import pytest
4+
from humanloop import Humanloop, FileType, AgentResponse, PromptResponse
55

66

77
class SyncableFile(NamedTuple):
@@ -46,6 +46,7 @@ def test_file_structure(humanloop_client: Humanloop, get_test_path) -> List[Sync
4646
created_files = []
4747
for file in files:
4848
full_path = get_test_path(file.path)
49+
response: Union[AgentResponse, PromptResponse]
4950
if file.type == "prompt":
5051
response = humanloop_client.prompts.upsert(
5152
path=full_path,

0 commit comments

Comments
 (0)