From: Yu Watanabe Date: Thu, 10 Oct 2024 00:33:47 +0000 (+0900) Subject: ukify: fix return value type of resolve_at_path() X-Git-Tag: v257-rc1~272 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e27477666408d9a46e659e8e419e05a60cd9735;p=thirdparty%2Fsystemd.git ukify: fix return value type of resolve_at_path() Follow-up for eca003de2f3a708c44946d36af6517cbcf3392ff. --- diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 23442827959..e78c6119cbe 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -1801,7 +1801,7 @@ def create_parser() -> argparse.ArgumentParser: return p -def resolve_at_path(value: Optional[str]) -> str: +def resolve_at_path(value: Optional[str]) -> Union[Path, str, None]: if value and value.startswith('@'): return Path(value[1:])