forked from kenzuya/unshackle
refactor(types): bring mypy to zero errors across unshackle
Fix the bugs the type errors exposed (RnetSession.send body, HLS proxy session, title cache fallback, mux progress) and gate mypy in pre-commit, warn-only in CI.
This commit is contained in:
@@ -44,9 +44,9 @@ def find(*names: str, search_dirs: Optional[list[Path]] = None) -> Optional[Path
|
||||
return path
|
||||
|
||||
# Fall back to system PATH
|
||||
path = shutil.which(name)
|
||||
if path:
|
||||
return Path(path)
|
||||
found = shutil.which(name)
|
||||
if found:
|
||||
return Path(found)
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user