Skip to content

Commit b0bafb9

Browse files
committed
fix type issue'
1 parent 6326e57 commit b0bafb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vision_agent/tools/meta_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import subprocess
22
from pathlib import Path
3-
from typing import List
3+
from typing import List, Union
44

55
import vision_agent as va
66
from vision_agent.lmm.types import Message
@@ -11,7 +11,7 @@
1111
DEFAULT_WINDOW_SIZE = 100
1212

1313

14-
def filter_file(file_name: str | Path) -> bool:
14+
def filter_file(file_name: Union[str, Path]) -> bool:
1515
file_name_p = Path(file_name)
1616
return (
1717
file_name_p.is_file()

0 commit comments

Comments
 (0)