diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-05-28 14:56:11 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-05-28 15:49:49 +0300 |
commit | dc0e24693622b8b475fb4cc82866166c1bec50d8 (patch) | |
tree | 7eee1cf7732b0d653d8db1bd8b54b91b71eca122 /win | |
parent | 9a7f27ea9b7ceed516fc96732953a8c02bed47f3 (diff) |
cq: Use union operator everywhere
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) |