]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ukify: fix return value type of resolve_at_path()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Oct 2024 00:33:47 +0000 (09:33 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 10 Oct 2024 06:02:13 +0000 (08:02 +0200)
Follow-up for eca003de2f3a708c44946d36af6517cbcf3392ff.

src/ukify/ukify.py

index 234428279590b119d955268aab19a6844d91e391..e78c6119cbeeaa92f0d47ce522d5ee884877f0d2 100755 (executable)
@@ -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:])