Add complex arithmetic types to ctypes (#12480)

This commit is contained in:
Peter Bierma
2024-08-29 11:27:37 -04:00
committed by GitHub
parent 63db21eaa0
commit 1a59cc28ba

View File

@@ -185,3 +185,8 @@ if sys.version_info >= (3, 12):
c_time_t: type[c_int32 | c_int64] # alias for one or the other at runtime
class py_object(_CanCastTo, _SimpleCData[_T]): ...
if sys.version_info >= (3, 14):
class c_float_complex(_SimpleCData[complex]): ...
class c_double_complex(_SimpleCData[complex]): ...
class c_longdouble_complex(_SimpleCData[complex]): ...