Skip to content

Commit 5d4870f

Browse files
committed
fix a type
1 parent 9e14cfe commit 5d4870f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/models/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from collections import defaultdict
4-
from typing import TYPE_CHECKING
4+
from typing import TYPE_CHECKING, Optional
55

66
from rich.tree import Tree
77

@@ -136,7 +136,7 @@ def to_dict(self) -> dict[str, list[dict[str, any]]]:
136136

137137
class CodeString(BaseModel):
138138
code: Annotated[str, AfterValidator(validate_python_code)]
139-
file_path: Path | None = None
139+
file_path: Optional[Path] = None
140140

141141

142142
class CodeStringsMarkdown(BaseModel):

0 commit comments

Comments
 (0)