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

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

@@ -0,0 +1,33 @@
"""
Auto-generated Python stub file from _withcontent.py
Module: _withcontent
"""
import t, c
from stdint import *
from w32.win32process import TlsAlloc, TlsGetValue, TlsSetValue
import stdlib
import stdio
import string
_MAX_PROVIDER_DEPTH: t.CDefine = 32
@t.Object
class _ProviderStack:
names: t.CArray[VOIDPTR, 32]
ptrs: t.CArray[VOIDPTR, 32]
top: UINT64
_tls_index: t.CExtern | ULONG
@t.TLS
def _init_tls() -> t.CInt: pass
def _get_stack() -> _ProviderStack | t.CPtr: pass
def _push_provider(field_name: str, ptr: t.CPtr) -> t.CInt: pass
def _pop_provider() -> t.CInt: pass
def _find_provider(field_name: str) -> t.CPtr: pass