This commit is contained in:
ZtRXR 2024-06-28 21:17:03 +08:00
parent 2fe043aee7
commit c57a8ce386
6 changed files with 26 additions and 2 deletions

View File

@ -43,6 +43,14 @@
"detail": "sys", "detail": "sys",
"documentation": {} "documentation": {}
}, },
{
"label": "doc",
"importPath": "pydoc",
"description": "pydoc",
"isExtraImport": true,
"detail": "pydoc",
"documentation": {}
},
{ {
"label": "glpy", "label": "glpy",
"kind": 6, "kind": 6,
@ -132,5 +140,14 @@
"peekOfCode": "sys.prefix = base", "peekOfCode": "sys.prefix = base",
"detail": ".venv.Scripts.activate_this", "detail": ".venv.Scripts.activate_this",
"documentation": {} "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": {}
} }
] ]

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"python.analysis.typeCheckingMode": "basic"
}

View File

@ -1 +1 @@
def pytest_glfw_window()->int:... from . import tests

1
src/glpy/tests.py Normal file
View File

@ -0,0 +1 @@
def glfw_window(width:int,height:int,title:str)->int:...

View File

@ -1,3 +1,6 @@
from pydoc import doc
import glpy as gl import glpy as gl
print(gl.pytest_glfw_window()) print(doc(gl))
print(gl.tests.glfw_window(1000,500,"你好"))

View File