diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/misc/depcheck.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win/misc/depcheck.py b/win/misc/depcheck.py index 2f965d539..6bebe3349 100644 --- a/win/misc/depcheck.py +++ b/win/misc/depcheck.py @@ -9,7 +9,6 @@ # Deletes unneeded DLLs and checks DLL dependencies. -from typing import Optional import logging import os @@ -76,7 +75,7 @@ def get_dependencies(filename: str) -> list[str]: return deps -def find_lib(root: str, name: str) -> Optional[str]: +def find_lib(root: str, name: str) -> str | None: search_path = os.path.join(root, 'bin') if os.path.exists(os.path.join(search_path, name)): return os.path.join(search_path, name) |