chore: clear typehinting errors

This commit is contained in:
aclist committed 2026-06-14 21:56:49 +09:00
1 parent c818945a28
commit 38bfef3836
3 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -55,14 +55,13 @@ def create_custom_symlinks(
return links
def symlink_mission(steam_path: Path, target: str) -> None:
def symlink_mission(steam_path: Path, target: str) -> str:
dayz_path = PeFile.get_nested_app_path(steam_path, APPID_DAYZ)
for file in dayz_path.iterdir():
expunge_link(file)
path = Path(target)
stem = path.name
parent = path.parent
suffix = _hash(str(parent), use_custom=True)
source = dayz_path.joinpath(DAYZ_COMMUNITY_ROOT)
try:
source.symlink_to(parent)