Skip to content

Commit

Permalink
Fix __getitem__ typing for matrix and quaternion.
Browse files Browse the repository at this point in the history
  • Loading branch information
esoma committed Jan 28, 2024
1 parent 1a3cf97 commit 1620224
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions codegen/templates/_emath.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class {{ type }}:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[{{ column_type }}]: ...
def __getitem__(self) -> {{ column_type }}: ...
def __getitem__(self, index: int) -> {{ column_type }}: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...

Expand Down Expand Up @@ -464,7 +464,7 @@ class {{ type }}:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[float]: ...
def __getitem__(self) -> float: ...
def __getitem__(self, index: int) -> float: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...

Expand Down
40 changes: 20 additions & 20 deletions src/emath/_emath.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -243153,7 +243153,7 @@ class DMatrix2x2:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[DVector2]: ...
def __getitem__(self) -> DVector2: ...
def __getitem__(self, index: int) -> DVector2: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -243254,7 +243254,7 @@ class FMatrix2x2:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[FVector2]: ...
def __getitem__(self) -> FVector2: ...
def __getitem__(self, index: int) -> FVector2: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -243357,7 +243357,7 @@ class DMatrix2x3:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[DVector3]: ...
def __getitem__(self) -> DVector3: ...
def __getitem__(self, index: int) -> DVector3: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -243451,7 +243451,7 @@ class FMatrix2x3:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[FVector3]: ...
def __getitem__(self) -> FVector3: ...
def __getitem__(self, index: int) -> FVector3: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -243554,7 +243554,7 @@ class DMatrix2x4:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[DVector4]: ...
def __getitem__(self) -> DVector4: ...
def __getitem__(self, index: int) -> DVector4: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -243657,7 +243657,7 @@ class FMatrix2x4:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[FVector4]: ...
def __getitem__(self) -> FVector4: ...
def __getitem__(self, index: int) -> FVector4: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -243751,7 +243751,7 @@ class DMatrix3x2:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[DVector2]: ...
def __getitem__(self) -> DVector2: ...
def __getitem__(self, index: int) -> DVector2: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -243845,7 +243845,7 @@ class FMatrix3x2:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[FVector2]: ...
def __getitem__(self) -> FVector2: ...
def __getitem__(self, index: int) -> FVector2: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -243949,7 +243949,7 @@ class DMatrix3x3:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[DVector3]: ...
def __getitem__(self) -> DVector3: ...
def __getitem__(self, index: int) -> DVector3: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -244063,7 +244063,7 @@ class FMatrix3x3:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[FVector3]: ...
def __getitem__(self) -> FVector3: ...
def __getitem__(self, index: int) -> FVector3: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -244180,7 +244180,7 @@ class DMatrix3x4:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[DVector4]: ...
def __getitem__(self) -> DVector4: ...
def __getitem__(self, index: int) -> DVector4: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -244287,7 +244287,7 @@ class FMatrix3x4:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[FVector4]: ...
def __getitem__(self) -> FVector4: ...
def __getitem__(self, index: int) -> FVector4: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -244390,7 +244390,7 @@ class DMatrix4x2:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[DVector2]: ...
def __getitem__(self) -> DVector2: ...
def __getitem__(self, index: int) -> DVector2: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -244493,7 +244493,7 @@ class FMatrix4x2:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[FVector2]: ...
def __getitem__(self) -> FVector2: ...
def __getitem__(self, index: int) -> FVector2: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -244600,7 +244600,7 @@ class DMatrix4x3:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[DVector3]: ...
def __getitem__(self) -> DVector3: ...
def __getitem__(self, index: int) -> DVector3: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -244707,7 +244707,7 @@ class FMatrix4x3:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[FVector3]: ...
def __getitem__(self) -> FVector3: ...
def __getitem__(self, index: int) -> FVector3: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -244818,7 +244818,7 @@ class DMatrix4x4:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[DVector4]: ...
def __getitem__(self) -> DVector4: ...
def __getitem__(self, index: int) -> DVector4: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -244958,7 +244958,7 @@ class FMatrix4x4:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[FVector4]: ...
def __getitem__(self) -> FVector4: ...
def __getitem__(self, index: int) -> FVector4: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -245077,7 +245077,7 @@ class DQuaternion:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[float]: ...
def __getitem__(self) -> float: ...
def __getitem__(self, index: int) -> float: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down Expand Up @@ -245178,7 +245178,7 @@ class FQuaternion:
def __repr__(self) -> str: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[float]: ...
def __getitem__(self) -> float: ...
def __getitem__(self, index: int) -> float: ...
def __eq__(self, other: Any) -> _bool: ...
def __ne__(self, other: Any) -> _bool: ...
def __buffer__(self, flags: int) -> memoryview: ...
Expand Down

0 comments on commit 1620224

Please sign in to comment.