Skip to content

Commit d99877f

Browse files
committed
math.py - remove TypeAlias for old python versions
1 parent 91b34d9 commit d99877f

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

UnityPy/classes/math.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66

77
from attrs import define
8-
from typing import TypeAlias
98

109

1110
@define(slots=True)
@@ -38,8 +37,8 @@ def __repr__(self) -> str:
3837
return f"Vector4f({self.x}, {self.y}, {self.z}, {self.w})"
3938

4039

41-
float3: TypeAlias = Vector3f
42-
float4: TypeAlias = Vector4f
40+
float3 = Vector3f
41+
float4 = Vector4f
4342

4443

4544
class Quaternionf(Vector4f):
@@ -115,3 +114,16 @@ def rgba(self, value: int):
115114
self.g = ((value >> 16) & 0xFF) / 255
116115
self.b = ((value >> 8) & 0xFF) / 255
117116
self.a = (value & 0xFF) / 255
117+
118+
119+
__all__ = (
120+
"Vector2f",
121+
"Vector3f",
122+
"Vector4f",
123+
"Quaternionf",
124+
"Matrix3x4f",
125+
"Matrix4x4f",
126+
"ColorRGBA",
127+
"float3",
128+
"float4",
129+
)

0 commit comments

Comments
 (0)