From 46e05c557cf695cb63d23bc8f1ba24328729f112 Mon Sep 17 00:00:00 2001 From: Rudolf Kolbe Date: Thu, 21 Dec 2023 21:55:01 +0100 Subject: [PATCH] Tpk - UnityVersion - set default values for fromList --- UnityPy/helpers/Tpk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityPy/helpers/Tpk.py b/UnityPy/helpers/Tpk.py index 84b65d42..f523a794 100644 --- a/UnityPy/helpers/Tpk.py +++ b/UnityPy/helpers/Tpk.py @@ -292,7 +292,7 @@ def fromString(version: str) -> UnityVersion: return UnityVersion(version.split(".")) @staticmethod - def fromList(major: int, minor: int, patch: int, build: int) -> UnityVersion: + def fromList(major: int = 0, minor: int = 0, patch: int = 0, build: int = 0) -> UnityVersion: return UnityVersion(major << 48 | minor << 32 | patch << 16 | build) @property