mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-23 09:18:44 +08:00
[ctypes] Soft deprecate ARRAY (#15204)
This commit is contained in:
@@ -169,11 +169,12 @@ def create_unicode_buffer(init: int | str, size: int | None = None) -> Array[c_w
|
||||
if sys.version_info >= (3, 13):
|
||||
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
|
||||
def SetPointerType(pointer: type[_Pointer[Any]], cls: _CTypeBaseType) -> None: ...
|
||||
@deprecated("Soft deprecated since Python 3.13. Use multiplication instead.")
|
||||
def ARRAY(typ: _CT, len: int) -> Array[_CT]: ...
|
||||
|
||||
else:
|
||||
def SetPointerType(pointer: type[_Pointer[Any]], cls: _CTypeBaseType) -> None: ...
|
||||
|
||||
def ARRAY(typ: _CT, len: int) -> Array[_CT]: ... # Soft Deprecated, no plans to remove
|
||||
def ARRAY(typ: _CT, len: int) -> Array[_CT]: ...
|
||||
|
||||
if sys.platform == "win32":
|
||||
def DllCanUnloadNow() -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user