Type annotations: aliases.py: Amend Extrema to use float & int Tuples.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-20 17:25:53 -07:00
parent 8e90f33dda
commit d936e0f649

View File

@ -9,5 +9,4 @@ Size = XY # NOTE: All XY aliases will be interchangeable
Matrix4 = Tuple[float, float, float, float] Matrix4 = Tuple[float, float, float, float]
Matrix12 = Tuple[float, float, float, float, float, float, float, float, float, float, float, float] Matrix12 = Tuple[float, float, float, float, float, float, float, float, float, float, float, float]
Mode = str Mode = str
Extrema = Union[Tuple[Any, Any], Tuple[Tuple[Any, Any], ...]] # Any -> float? Extrema = Union[Tuple[float, float], Tuple[int, int], Tuple[Tuple[int, int], ...]]