Enforce strict Pyright gate
This commit is contained in:
parent
90898cfd63
commit
2841042b9c
16 changed files with 214 additions and 77 deletions
|
|
@ -355,7 +355,7 @@ class AdapterProject:
|
|||
def _resolved_directories(
|
||||
root: Path, paths: tuple[Path, ...], *, label: str
|
||||
) -> tuple[Path, ...]:
|
||||
resolved = []
|
||||
resolved: list[Path] = []
|
||||
for path in paths:
|
||||
if path.is_symlink():
|
||||
raise DocForgeError("path_escape", f"Adapter {label} is unsafe")
|
||||
|
|
@ -369,7 +369,7 @@ class AdapterProject:
|
|||
|
||||
@staticmethod
|
||||
def _resolved_files(root: Path, paths: tuple[Path, ...], *, label: str) -> tuple[Path, ...]:
|
||||
resolved = []
|
||||
resolved: list[Path] = []
|
||||
for path in paths:
|
||||
if path.is_symlink():
|
||||
raise DocForgeError("path_escape", f"Adapter {label} is unsafe")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue