修复了大量存在的问题,增加了假鸭子类型等等机制
This commit is contained in:
@@ -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
|
||||
|
||||
25
Test/CPythonTest/temp/9dbecd0942a39782.pyi
Normal file
25
Test/CPythonTest/temp/9dbecd0942a39782.pyi
Normal 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
|
||||
@@ -1,3 +1,4 @@
|
||||
0cd580d62a3de4f8:main.py
|
||||
3c8ecda6b848f011:main.py
|
||||
73edbcf76e32d00b:includes/stdio.py
|
||||
7c5d5ec59c5fb0a8:cpython.py
|
||||
9dbecd0942a39782:includes/testcheck.py
|
||||
|
||||
0
Test/CPythonTest/temp/_shared_sym.json
Normal file
0
Test/CPythonTest/temp/_shared_sym.json
Normal file
Binary file not shown.
Reference in New Issue
Block a user