Skip to content

Commit 46e05c5

Browse files
authored
Tpk - UnityVersion - set default values for fromList
1 parent 83d736c commit 46e05c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎UnityPy/helpers/Tpk.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def fromString(version: str) -> UnityVersion:
292292
return UnityVersion(version.split("."))
293293

294294
@staticmethod
295-
def fromList(major: int, minor: int, patch: int, build: int) -> UnityVersion:
295+
def fromList(major: int = 0, minor: int = 0, patch: int = 0, build: int = 0) -> UnityVersion:
296296
return UnityVersion(major << 48 | minor << 32 | patch << 16 | build)
297297

298298
@property

0 commit comments

Comments
 (0)