We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 709d6bc commit 2849f63Copy full SHA for 2849f63
src/idom/server/utils.py
@@ -74,7 +74,7 @@ def safe_web_modules_dir_path(path: str) -> Path:
74
75
def traversal_safe_path(root: Path, *unsafe_parts: str | Path) -> Path:
76
"""Sanitize user given path using ``werkzeug.security.safe_join``"""
77
- path = safe_join(str(root.resolve()), *unsafe_parts)
+ path = safe_join(str(root.resolve()), *unsafe_parts) # type: ignore
78
if path is None:
79
raise ValueError("Unsafe path") # pragma: no cover
80
return Path(path)
0 commit comments