From 2ba77320398e87380a6d19086320da3935ee93f9 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 27 Sep 2023 14:42:11 +0800 Subject: [PATCH] ... --- include/typings/c.pyi | 4 +++- include/typings/linalg.pyi | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/typings/c.pyi b/include/typings/c.pyi index 9005a901..ffe0c631 100644 --- a/include/typings/c.pyi +++ b/include/typings/c.pyi @@ -132,7 +132,7 @@ from typing import Generic, TypeVar T = TypeVar('T') -class StructLike(Generic[T]): +class _StructLike(Generic[T]): def to_struct(self) -> struct: ... @classmethod def from_struct(cls, s: struct) -> T: ... @@ -143,3 +143,5 @@ class StructLike(Generic[T]): def __eq__(self, other: T) -> bool: ... def __ne__(self, other: T) -> bool: ... +class _Pointer(Generic[T]): + pass diff --git a/include/typings/linalg.pyi b/include/typings/linalg.pyi index e98c6262..6330173d 100644 --- a/include/typings/linalg.pyi +++ b/include/typings/linalg.pyi @@ -1,7 +1,7 @@ from typing import overload -from c import StructLike +from c import _StructLike -class vec2(StructLike['vec2']): +class vec2(_StructLike['vec2']): x: float y: float @@ -18,7 +18,7 @@ class vec2(StructLike['vec2']): def rotate(self, radians: float) -> vec2: ... def rotate_(self, radians: float) -> None: ... -class vec3(StructLike['vec3']): +class vec3(_StructLike['vec3']): x: float y: float z: float @@ -34,7 +34,7 @@ class vec3(StructLike['vec3']): def length_squared(self) -> float: ... def normalize(self) -> vec3: ... -class vec4(StructLike['vec4']): +class vec4(_StructLike['vec4']): x: float y: float z: float @@ -50,7 +50,7 @@ class vec4(StructLike['vec4']): def length_squared(self) -> float: ... def normalize(self) -> vec4: ... -class mat3x3(StructLike['mat3x3']): +class mat3x3(_StructLike['mat3x3']): _11: float _12: float _13: float