File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ def __init__(self, stream: BytesIO) -> None:
287287class UnityVersion (int ):
288288 # https://github.com/AssetRipper/VersionUtilities/blob/master/VersionUtilities/UnityVersion.cs
289289 """
290- use following static methos instead of the constructor(__init__):
290+ use following static methods instead of the constructor(__init__):
291291 UnityVersion.fromStream(stream: BytesIO)
292292 UnityVersion.fromString(version: str)
293293 UnityVersion.fromList(major: int, minor: int, patch: int, build: int)
@@ -300,7 +300,7 @@ def fromStream(stream: BytesIO) -> UnityVersion:
300300
301301 @staticmethod
302302 def fromString (version : str ) -> UnityVersion :
303- return UnityVersion ( version .split ("." ))
303+ return UnityVersion . fromList ( * map ( int , version .split ("." ) ))
304304
305305 @staticmethod
306306 def fromList (
You can’t perform that action at this time.
0 commit comments