mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-24 09:48:39 +08:00
[ctypes] Replace two instances of Any (#14047)
This commit is contained in:
@@ -11,6 +11,7 @@ from _ctypes import (
|
||||
_CData as _CData,
|
||||
_CDataType as _CDataType,
|
||||
_CField as _CField,
|
||||
_CTypeBaseType,
|
||||
_Pointer as _Pointer,
|
||||
_PointerLike as _PointerLike,
|
||||
_SimpleCData as _SimpleCData,
|
||||
@@ -162,7 +163,7 @@ c_buffer = create_string_buffer
|
||||
|
||||
def create_unicode_buffer(init: int | str, size: int | None = None) -> Array[c_wchar]: ...
|
||||
@deprecated("Deprecated in Python 3.13; removal scheduled for Python 3.15")
|
||||
def SetPointerType(pointer: type[_Pointer[Any]], cls: Any) -> None: ...
|
||||
def SetPointerType(pointer: type[_Pointer[Any]], cls: _CTypeBaseType) -> None: ...
|
||||
def ARRAY(typ: _CT, len: int) -> Array[_CT]: ... # Soft Deprecated, no plans to remove
|
||||
|
||||
if sys.platform == "win32":
|
||||
|
||||
Reference in New Issue
Block a user