Skip to content

Commit a886248

Browse files
committed
TypeError use pre-defined annotation
1 parent b4eeafb commit a886248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exec_helpers/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def __init__(self, conn: "ExecHelper", path: ChRootPathSetT = None) -> None:
9797
elif isinstance(path, pathlib.Path):
9898
self._path = path.as_posix() # get absolute path
9999
else:
100-
raise TypeError(f"path={path!r} is not instance of Optional[Union[str, pathlib.Path]]")
100+
raise TypeError(f"path={path!r} is not instance of {ChRootPathSetT}")
101101

102102
def __enter__(self) -> None:
103103
self._conn.__enter__()

0 commit comments

Comments
 (0)