可用的回归测试通过的标准版本
This commit is contained in:
18
Test/BuiltinDecoratorTest/temp/6c2029b306556c00.pyi
Normal file
18
Test/BuiltinDecoratorTest/temp/6c2029b306556c00.pyi
Normal file
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
Auto-generated Python stub file from stdlib.py
|
||||
Module: stdlib
|
||||
"""
|
||||
|
||||
import c
|
||||
|
||||
|
||||
from stdint import *
|
||||
import t
|
||||
|
||||
def malloc(size: t.CSizeT) -> t.CVoid | t.CPtr | t.State | t.CExtern | t.CExport: pass
|
||||
|
||||
def calloc(nmemb: t.CSizeT, size: t.CSizeT) -> t.CVoid | t.CPtr | t.State | t.CExtern | t.CExport: pass
|
||||
|
||||
def realloc(p: t.CVoid | t.CPtr, size: t.CSizeT) -> t.CVoid | t.CPtr | t.State | t.CExtern | t.CExport: pass
|
||||
|
||||
def free(p: t.CVoid | t.CPtr) -> None | t.State | t.CExtern | t.CExport: pass
|
||||
@@ -1,3 +1,4 @@
|
||||
56cdd754a8a09347:includes/stdint.py
|
||||
6c2029b306556c00:includes/stdlib.py
|
||||
73edbcf76e32d00b:includes/stdio.py
|
||||
7d5b7ce7c134ada7:main.py
|
||||
b6069b01d8c9cc04:main.py
|
||||
|
||||
@@ -9,6 +9,7 @@ import c
|
||||
import t
|
||||
from stdint import *
|
||||
from stdio import printf
|
||||
from stdlib import malloc
|
||||
|
||||
_pass_count: t.CExtern | t.CInt
|
||||
_fail_count: t.CExtern | t.CInt
|
||||
@@ -19,6 +20,7 @@ def check(name: t.CChar | t.CPtr, condition: bool) -> t.CInt: pass
|
||||
class Rect:
|
||||
width: t.CInt
|
||||
height: t.CInt
|
||||
def __new__(self: Rect, w: t.CInt, h: t.CInt) -> 'Rect' | t.CPtr: pass
|
||||
def __init__(self: Rect, w: t.CInt, h: t.CInt) -> t.CInt: pass
|
||||
@property
|
||||
def area(self: Rect) -> t.CInt: pass
|
||||
@@ -30,7 +32,8 @@ def test_property_getter() -> t.CInt: pass
|
||||
|
||||
class Temperature:
|
||||
_celsius: t.CDouble
|
||||
def __init__(self: Temperature, c: t.CDouble) -> t.CInt: pass
|
||||
def __new__(self: Temperature, celsius_val: t.CDouble) -> 'Temperature' | t.CPtr: pass
|
||||
def __init__(self: Temperature, celsius_val: t.CDouble) -> t.CInt: pass
|
||||
@property
|
||||
def celsius(self: Temperature) -> t.CDouble: pass
|
||||
@celsius.setter
|
||||
@@ -43,6 +46,7 @@ def test_property_setter() -> t.CInt: pass
|
||||
|
||||
class Counter:
|
||||
_count: t.CInt
|
||||
def __new__(self: Counter) -> 'Counter' | t.CPtr: pass
|
||||
def __init__(self: Counter) -> t.CInt: pass
|
||||
@property
|
||||
def value(self: Counter) -> t.CInt: pass
|
||||
@@ -55,6 +59,7 @@ def test_property_getter_redef() -> t.CInt: pass
|
||||
class Config:
|
||||
_value: t.CInt
|
||||
_deleted: t.CInt
|
||||
def __new__(self: Config, v: t.CInt) -> 'Config' | t.CPtr: pass
|
||||
def __init__(self: Config, v: t.CInt) -> t.CInt: pass
|
||||
@property
|
||||
def value(self: Config) -> t.CInt: pass
|
||||
@@ -79,6 +84,7 @@ def test_staticmethod() -> t.CInt: pass
|
||||
class Point:
|
||||
x: t.CDouble
|
||||
y: t.CDouble
|
||||
def __new__(self: Point, x: t.CDouble, y: t.CDouble) -> 'Point' | t.CPtr: pass
|
||||
def __init__(self: Point, x: t.CDouble, y: t.CDouble) -> t.CInt: pass
|
||||
@classmethod
|
||||
def origin(cls: Point) -> Point: pass
|
||||
@@ -91,6 +97,7 @@ def test_classmethod() -> t.CInt: pass
|
||||
|
||||
class Circle:
|
||||
_radius: t.CDouble
|
||||
def __new__(self: Circle, r: t.CDouble) -> 'Circle' | t.CPtr: pass
|
||||
def __init__(self: Circle, r: t.CDouble) -> t.CInt: pass
|
||||
@property
|
||||
def radius(self: Circle) -> t.CDouble: pass
|
||||
Reference in New Issue
Block a user