From c57a8ce3860be9a69b2a289cfbc994c834974e39 Mon Sep 17 00:00:00 2001 From: ZtRXR Date: Fri, 28 Jun 2024 21:17:03 +0800 Subject: [PATCH] update --- .vscode/PythonImportHelper-v2-Completion.json | 17 +++++++++++++++++ .vscode/settings.json | 3 +++ src/glpy/__init__.pyi | 2 +- src/glpy/tests.py | 1 + src/main.py | 5 ++++- tests/__init__.py | 0 6 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 src/glpy/tests.py delete mode 100644 tests/__init__.py diff --git a/.vscode/PythonImportHelper-v2-Completion.json b/.vscode/PythonImportHelper-v2-Completion.json index fd768b8..276598b 100644 --- a/.vscode/PythonImportHelper-v2-Completion.json +++ b/.vscode/PythonImportHelper-v2-Completion.json @@ -43,6 +43,14 @@ "detail": "sys", "documentation": {} }, + { + "label": "doc", + "importPath": "pydoc", + "description": "pydoc", + "isExtraImport": true, + "detail": "pydoc", + "documentation": {} + }, { "label": "glpy", "kind": 6, @@ -132,5 +140,14 @@ "peekOfCode": "sys.prefix = base", "detail": ".venv.Scripts.activate_this", "documentation": {} + }, + { + "label": "glfw_window", + "kind": 2, + "importPath": "src.glpy.tests", + "description": "src.glpy.tests", + "peekOfCode": "def glfw_window(width:int,height:int,title:str)->int:...", + "detail": "src.glpy.tests", + "documentation": {} } ] \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..457f44d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.analysis.typeCheckingMode": "basic" +} \ No newline at end of file diff --git a/src/glpy/__init__.pyi b/src/glpy/__init__.pyi index 42ca498..b138496 100644 --- a/src/glpy/__init__.pyi +++ b/src/glpy/__init__.pyi @@ -1 +1 @@ -def pytest_glfw_window()->int:... \ No newline at end of file +from . import tests \ No newline at end of file diff --git a/src/glpy/tests.py b/src/glpy/tests.py new file mode 100644 index 0000000..337b17c --- /dev/null +++ b/src/glpy/tests.py @@ -0,0 +1 @@ +def glfw_window(width:int,height:int,title:str)->int:... \ No newline at end of file diff --git a/src/main.py b/src/main.py index c3f93a3..3e877d3 100644 --- a/src/main.py +++ b/src/main.py @@ -1,3 +1,6 @@ +from pydoc import doc import glpy as gl -print(gl.pytest_glfw_window()) +print(doc(gl)) + +print(gl.tests.glfw_window(1000,500,"你好")) diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000