Skip to content

Commit 6193feb

Browse files
committed
fix: use Optional for Python 3.9 compatibility in smoke tests
1 parent 60dff7d commit 6193feb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/smoke/test_smoke.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import shutil
1414
import subprocess
1515
from pathlib import Path
16+
from typing import Optional
1617

1718
import pytest
1819

@@ -28,9 +29,9 @@
2829

2930
def run_promptfoo(
3031
args: list[str],
31-
cwd: Path | None = None,
32+
cwd: Optional[Path] = None,
3233
expect_error: bool = False,
33-
env: dict[str, str] | None = None,
34+
env: Optional[dict[str, str]] = None,
3435
) -> tuple[str, str, int]:
3536
"""
3637
Run promptfoo CLI and capture output.

0 commit comments

Comments
 (0)