补充
This commit is contained in:
82
Test/GenericTest2/temp/1348b0e29ea228ad.pyi
Normal file
82
Test/GenericTest2/temp/1348b0e29ea228ad.pyi
Normal file
@@ -0,0 +1,82 @@
|
||||
"""
|
||||
Auto-generated Python stub file from main.py
|
||||
Module: main
|
||||
"""
|
||||
|
||||
|
||||
import t
|
||||
import stdio
|
||||
import c
|
||||
|
||||
def square[T](x: T) -> T: pass
|
||||
|
||||
def test_generic_square_types() -> t.CInt: pass
|
||||
|
||||
def clamp[T](val: T, lo: T, hi: T) -> T: pass
|
||||
|
||||
def test_generic_clamp() -> t.CInt: pass
|
||||
|
||||
|
||||
class Stack[T]:
|
||||
data: list[t.CInt, 16]
|
||||
top: t.CInt
|
||||
def __init__(self: Stack) -> t.CInt: pass
|
||||
def push(self: Stack, val: T) -> t.CInt: pass
|
||||
def pop(self: Stack) -> T: pass
|
||||
def is_empty(self: Stack) -> t.CInt: pass
|
||||
|
||||
def test_generic_stack() -> t.CInt: pass
|
||||
|
||||
|
||||
class IntPair:
|
||||
a: t.CInt
|
||||
b: t.CInt
|
||||
|
||||
def generic_swap[T](p: IntPair | t.CPtr) -> t.CInt: pass
|
||||
|
||||
def test_generic_swap() -> t.CInt: pass
|
||||
|
||||
|
||||
class Range[T]:
|
||||
start: T
|
||||
end_val: T
|
||||
step: T
|
||||
def __init__(self: Range, s: T, e: T, st: T) -> t.CInt: pass
|
||||
def sum_all(self: Range) -> T: pass
|
||||
|
||||
def test_generic_range() -> t.CInt: pass
|
||||
|
||||
def array_sum(arr: list[t.CInt, 8], n: t.CInt) -> t.CInt: pass
|
||||
|
||||
def test_generic_array_sum() -> t.CInt: pass
|
||||
|
||||
def max_of_three[T](a: T, b: T, c_val: T) -> T: pass
|
||||
|
||||
def test_generic_max_three() -> t.CInt: pass
|
||||
|
||||
|
||||
class Container[T]:
|
||||
values: list[t.CInt, 8]
|
||||
size: t.CInt
|
||||
def __init__(self: Container) -> t.CInt: pass
|
||||
def add(self: Container, v: T) -> t.CInt: pass
|
||||
def get(self: Container, idx: t.CInt) -> T: pass
|
||||
def contains(self: Container, v: T) -> t.CInt: pass
|
||||
def total(self: Container) -> T: pass
|
||||
|
||||
def test_generic_container() -> t.CInt: pass
|
||||
|
||||
def factorial[T](n: T) -> T: pass
|
||||
|
||||
def test_generic_factorial() -> t.CInt: pass
|
||||
|
||||
|
||||
class Accumulator[T]:
|
||||
total: T
|
||||
def __init__(self: Accumulator, start: T) -> t.CInt: pass
|
||||
def add_val(self: Accumulator, v: T) -> t.CInt: pass
|
||||
def get_result(self: Accumulator) -> T: pass
|
||||
|
||||
def test_generic_accumulator() -> t.CInt: pass
|
||||
|
||||
def main() -> t.CInt: pass
|
||||
28
Test/GenericTest2/temp/73edbcf76e32d00b.pyi
Normal file
28
Test/GenericTest2/temp/73edbcf76e32d00b.pyi
Normal file
@@ -0,0 +1,28 @@
|
||||
"""
|
||||
Auto-generated Python stub file from stdio.py
|
||||
Module: stdio
|
||||
"""
|
||||
|
||||
|
||||
import t, c
|
||||
|
||||
def printf(fmt: t.CChar | t.CConst | t.CPtr, *args) -> t.CInt | t.CExtern | t.CExport: pass
|
||||
|
||||
def fprintf(stream: t.CVoid | t.CPtr, fmt: t.CChar | t.CConst | t.CPtr, *args) -> t.CInt | t.CExtern | t.CExport: pass
|
||||
|
||||
def sprintf(buf: t.CChar | t.CPtr, fmt: t.CChar | t.CConst | t.CPtr, *args) -> t.CInt | t.CExtern | t.CExport: pass
|
||||
|
||||
def snprintf(buf: t.CChar | t.CPtr, size: t.CSizeT, fmt: t.CChar | t.CConst | t.CPtr, *args) -> t.CInt | t.CExtern | t.CExport: pass
|
||||
|
||||
def puts(s: t.CChar | t.CConst | t.CPtr) -> t.CInt | t.CExtern | t.CExport: pass
|
||||
|
||||
def fputs(s: t.CChar | t.CConst | t.CPtr, stream: t.CVoid | t.CPtr) -> t.CInt | t.CExtern | t.CExport: pass
|
||||
|
||||
def fgets(buf: t.CChar | t.CPtr, size: t.CInt, stream: t.CVoid | t.CPtr) -> t.CChar | t.CPtr | t.CExtern | t.CExport: pass
|
||||
|
||||
def fflush(stream: t.CVoid | t.CPtr) -> t.CInt | t.CExtern | t.CExport: pass
|
||||
|
||||
|
||||
stdin: t.CExtern | t.CVoid | t.CPtr
|
||||
stdout: t.CExtern | t.CVoid | t.CPtr
|
||||
stderr: t.CExtern | t.CVoid | t.CPtr
|
||||
2
Test/GenericTest2/temp/_sha1_map.txt
Normal file
2
Test/GenericTest2/temp/_sha1_map.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
1348b0e29ea228ad:main.py
|
||||
73edbcf76e32d00b:includes/stdio.py
|
||||
Reference in New Issue
Block a user