From 31faeb2a70cd86aba240fdf511ab287d0245fc9c Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 28 Mar 2023 20:41:07 +0800 Subject: [PATCH] add typing hint on the python side --- libs/pyglet_rs/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libs/pyglet_rs/__init__.py b/libs/pyglet_rs/__init__.py index b613044..f139b94 100644 --- a/libs/pyglet_rs/__init__.py +++ b/libs/pyglet_rs/__init__.py @@ -4,10 +4,23 @@ # All rights reserved # ------------------------------- +""" +from .lib import (get_version_str) + +from .lib import (Sprite_rs, + Vector2_rs, Vector3_rs, Vector4_rs, + Matrix3_rs, Matrix4_rs) +""" from .lib import * from typing import TYPE_CHECKING +__version__ = get_version_str() +__all__ = ['patch_sprite', 'patch_vector', 'patch_matrix', 'patch_all', + 'Sprite_rs', + 'Vector2_rs', 'Vector3_rs', 'Vector4_rs', + 'Matrix3_rs', 'Matrix4_rs'] + if TYPE_CHECKING: from pyglet.event import EventDispatcher