From dc0e24693622b8b475fb4cc82866166c1bec50d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 28 May 2023 13:56:11 +0200 Subject: cq: Use union operator everywhere --- win/misc/depcheck.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'win') 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) -- cgit v1.2.3