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:
parent
4bc7a54d75
commit
6e27477666
@ -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:])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user