1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

ukify: fix return value type of resolve_at_path()

Follow-up for eca003de2f.
This commit is contained in:
Yu Watanabe 2024-10-10 09:33:47 +09:00 committed by Daan De Meyer
parent 4bc7a54d75
commit 6e27477666

View File

@ -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:])