修复了大量存在的问题,增加了假鸭子类型等等机制

This commit is contained in:
2026-06-25 14:49:46 +08:00
parent 19f2787db0
commit d88d11b646
827 changed files with 32617 additions and 18316 deletions

View File

@@ -8,11 +8,7 @@ import t, c
from t import CInt, CLong, CDouble, CPtr, CSizeT
from stdio import printf
import cpython
_pass_count: t.CExtern | CInt
_fail_count: t.CExtern | CInt
def check(name: t.CChar | CPtr, condition: bool) -> t.CInt: pass
import testcheck
def test_init_finalize() -> t.CInt: pass

View File

@@ -0,0 +1,25 @@
"""
Auto-generated Python stub file from testcheck.py
Module: testcheck
"""
import t, c
import stdio
_pass_count: t.CExtern | t.CInt
_fail_count: t.CExtern | t.CInt
def begin(name: str) -> t.CInt: pass
def section(name: str) -> t.CInt: pass
def ok(msg: str) -> t.CInt: pass
def fail(msg: str) -> t.CInt: pass
def check(cond: t.CInt, ok_msg: str, fail_msg: str) -> t.CInt: pass
def info(msg: str) -> t.CInt: pass
def end() -> t.CInt: pass

View File

@@ -1,3 +1,4 @@
0cd580d62a3de4f8:main.py
3c8ecda6b848f011:main.py
73edbcf76e32d00b:includes/stdio.py
7c5d5ec59c5fb0a8:cpython.py
9dbecd0942a39782:includes/testcheck.py

View File