mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 03:51:52 +08:00
ctypes.POINTER(None) returns ctypes.c_void_p (#12754)
This commit is contained in:
8
stdlib/@tests/test_cases/ctypes/check_pointer.py
Normal file
8
stdlib/@tests/test_cases/ctypes/check_pointer.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import ctypes
|
||||
from typing import Type
|
||||
from typing_extensions import assert_type
|
||||
|
||||
assert_type(ctypes.POINTER(None), Type[ctypes.c_void_p])
|
||||
assert_type(ctypes.POINTER(ctypes.c_int), Type[ctypes._Pointer[ctypes.c_int]])
|
||||
Reference in New Issue
Block a user